Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Autonomous Database In Enterprise Architecture

Authors: Bal Mukund Sharma, Krishnakumar KM, Rashmi Panda

1st Edition

1801072248, 978-1801072243

More Books

Students also viewed these Databases questions