Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

import pandas as pd import matplotlib.pyplot as plt # Load the file internetusage.csv into a data frame called df df = pd . read _

import pandas as pd
import matplotlib.pyplot as plt
# Load the file internetusage.csv into a data frame called df
df = pd.read_csv('internetusage.csv')
# Create a new data frame, population, by subsetting the State and Population columns
population = df[['State', 'Population']]
# Create a new data frame, state_data, by subsetting the inputted row
state_data = df.loc[14]
# Print the population of the state
print(f"The population of {state_data['State']} is {state_data['Population']}")
# Using the template from the link, create a box plot for the population data frame
plt.boxplot(population['Population'])
plt.title('Box plot of Population')
plt.show()

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

Students also viewed these Databases questions