Question: CMPG 1 1 1 - Pandas and Matplotlib SU 8 _ 1 Filtering and Selecting Write a Python program to filter and select data from

CMPG111- Pandas and Matplotlib
SU8_1 Filtering and Selecting
Write a Python program to filter and select data from the given CSV file using Pandas.
Read the provided CSV file into a Pandas DataFrame.
8.1.1. Filter rows where the course is "Databases" and print the resulting DataFrame.
8.1.2. Filter rows to identify students who are at-risk of failing, meaning any one of their grades are below 40%. Print the resulting DataFrame.
8.1.3. Filter rows to identify students with a distinction in "Programming", meaning that they achieved 75% or greater. Print the resulting DataFrame.
Submit your Python script (*.py) named: SU8_1.py
SU8_2 Grouping and Aggregating
Write a Python program to group data by course and calculate aggregate statistics.
Read the provided CSV file into a Pandas Dataframe.
Group the data by the "Course" column and calculate the average grades for each course. Print the resulting aggregated DataFrame.
Submit your Python script (*.py) named: SU8_2.py
 CMPG111- Pandas and Matplotlib SU8_1 Filtering and Selecting Write a Python

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!