Jupyter Notebook file and get the same as the output I provide

User Generated

FveUneelgurTerng

Programming

Harvard University

Description

I have project instructions, requirements, and the output that is attached. Please use the Jupiter Notebook file and write the code to get exactly the same output. I need the whole code in one cell

Given: # Run cell to import libraries

import geopandas as gpd

import pandas as pd

import matplotlib.pyplot as plt

import contextily

import mapclassify

import folium

import aiohttp

import fsspec

# This loads geodataframe contaning county geometry shapes

c = "https://github.com/babdelfa/gis/blob/main/counties_geometry.zip?raw=true"

import fsspec

with fsspec.open(c) as file:

county_shapes = gpd.read_file(file)

# This loads the most recent covid19 data from Johns Hopkins University's Github

url_cases = "https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_confirmed_US.csv"

df_cases = pd.read_csv(url_cases)

url_deaths = "https://github.com/CSSEGISandData/COVID-19/raw/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_deaths_US.csv"

df_deaths = pd.read_csv(url_deaths)

Unformatted Attachment Preview

Project In [2]: *** MIS 433 COVID19 Report *** Enter County: Fairfax Population of Fairfax, Virginia: 1,147,532 First Reported Outbreak in Fairfax: March 08, 2020 Fairfax County COVID19 Summary Statistics: - Average number of new cases in 2020: 127.84 - Average number of new cases in 2021: 199.38 - Average number of new cases in 2022: 368.65 - Total number of new cases in 2020: 43,977 - Total number of new cases in 2021: 72,775 - Total number of new cases in 2022: 134,558 - Cumulative total number of cases: 251,310 (December 31, 2022) Interactive map of Virginia counties and total COVID19 cases as of 12/31/2022: this Notebook Trusted to load map: File -> Trust Notebook Out[2]: Make 78 22,700 44,921 67,143 89,364 111,586 + − Total Cases 100 100 km 100 100 mi mi Leaflet | Data by © OpenStreetMap, under ODbL.
Purchase answer to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Explanation & Answer

At...

Related Tags