Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started