Menu

[Solved]-Python 3 Notebook Pandas Data Analysis Help Please Answer Parts Provide Screenshot Spacing Q37188432

PYTHON 3 NOTEBOOK PANDAS AND DATA ANALYSIS HELP – PLEASE ANSWERALL PARTS AND PROVIDE SCREENSHOT FOR SPACING PURPOSES

The “Caschool.csv” data set contains data abouttest scores in California schools during the 1998-1999 school year.To learn more about the dataset, seehttps://vincentarelbundock.github.io/Rdatasets/doc/Ecdat/Caschool.html

https://github.com/vincentarelbundock/Rdatasets/blob/master/csv/Ecdat/Caschool.csv

Question 3

Which five counties have the most schools inCalifornia?

Your output should look like this:

Sonoma 29
Kern 27
Los Angeles 27
Tulare 24
San Diego 21

Hint: is there a pandas function that can give youthis answer for a given column?

In [ ]:

# Your code goes here​Group the counties by the “county” column, summarized by the mean of the values for each of the other columns

Store the resulting grouped dataframe in the variablegroup_county and display the grouped dataframe.

In [ ]:

# Your code goes here.

Continue using the new grouped dataframe. Which countieshave an average reading score higher than 650?

In the example output below, only the first 15 rows areshown but your output should display all 45 rows.

Your output should look like this:
county
Alameda True
Butte False
Calaveras False
Contra Costa True
El Dorado False
Fresno False
Glenn False
Humboldt False
Imperial False
Inyo False
Kern False
Kings False
Lake False
Lassen False
Los Angeles False

In the example output above, only the first 15 rows areshown but your output should display all 45 rows.

In [ ]:

# Your code goes here

Expert Answer


Answer to PYTHON 3 NOTEBOOK PANDAS AND DATA ANALYSIS HELP – PLEASE ANSWER ALL PARTS AND PROVIDE SCREENSHOT FOR SPACING PURPOSES Th… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *