Question: Instructor note: - The instructions for line 9 are confusing. It should probably say #subset the population row given by state _ index -
Instructor note:
The instructions for line are confusing. It should probably say #subset the population row given by stateindex
Also, we have not had examples of how to use the iloc function in this manner before so it would be difficult for students to know this. Line code change should be the following: population.ilocstateindex
There is an error in lines and which needs to be corrected for the code to work correctly. Even though there are no comments to make any changes, the following changes need to be made: state.iloc must be changed to statedata.iloc
The link for creating a box plot does not work correctly. Use the chapter Sandbox to test out code and look at the workspace on the left side for the image output of the plot.
Write a program that will do the following tasks:
Load the file internetusage.csv into a data frame called df
Create a new data frame, population, by subsetting the State and Population columns.
Create a new data frame, statedata, by subsetting the inputted row.
Using the template from this link create a box plot for the population data frame.
The input for the state of Colorado is:
The output should be:
The population of Colorado is
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
