Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question Write the Python code to find the average GPA of each subject area at The University of Illinois. Your solution must include only a

image text in transcribed

image text in transcribed

Question Write the Python code to find the average GPA of each subject area at The University of Illinois. Your solution must include only a single row for each subject. Each row must contain a subject variable (column) and an average GPA variable (column). You can create extra columns if needed, only subject and Average GPA will be graded. Dataset The GPA distributions of all University of Illinois courses has been loaded into a variable df for you. The GPA dataset has the following variables (columns): Year (number), A four digit year, ex: 2019 Term (string), A semester term, ex: "Spring" or "Fall" Subject (string), A course subject, ex: "cs" or "STAT" Number (number), A course number, ex: 107 or 225 A+, A, A-, B+, B, B-, C+, C, C-, D+, D, D-, F, and w (numbers), The number of each grade given in the course section, ex: 2 or 26 Count (number), the total number of non-w grades given, ex: 214 or 183 Variables The setup code gives the following variables: Name Type DataFrame Description The course catalog dataset, as a DataFrame. df Your code snippet should define the following variables: Name Type Description Your DataFrame containing only the applicants that answer this problem's df_average_gpa DataFrame question. Question Write the Python code to find the average GPA of each subject area at The University of Illinois. Your solution must include only a single row for each subject. Each row must contain a subject variable (column) and an average GPA variable (column). You can create extra columns if needed, only subject and Average GPA will be graded. Dataset The GPA distributions of all University of Illinois courses has been loaded into a variable df for you. The GPA dataset has the following variables (columns): Year (number), A four digit year, ex: 2019 Term (string), A semester term, ex: "Spring" or "Fall" Subject (string), A course subject, ex: "cs" or "STAT" Number (number), A course number, ex: 107 or 225 A+, A, A-, B+, B, B-, C+, C, C-, D+, D, D-, F, and w (numbers), The number of each grade given in the course section, ex: 2 or 26 Count (number), the total number of non-w grades given, ex: 214 or 183 Variables The setup code gives the following variables: Name Type DataFrame Description The course catalog dataset, as a DataFrame. df Your code snippet should define the following variables: Name Type Description Your DataFrame containing only the applicants that answer this problem's df_average_gpa DataFrame

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

Step: 3

blur-text-image

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

More Books

Students also viewed these Databases questions

Question

1. How might volunteering help the employer and the employee?

Answered: 1 week ago