Country Region Confirmed Deaths Recovered Active 171 US 461437 16478 25410 419549 84 Italy 143626 18279 28470 96877 156 Spain 153222 15447 52165 85610 61 France 118781 12228 23413 83140 65 Germany 118181 2607 52407 63167 175 United Kingdom 65872 7993 359 57520 170 Turkey 42282 908 2142 39232 80 Iran 66220 4110 32309 29801 120 Netherlands 21903 2403 278 19222 16 Belgium 24983 2523 5164 17296 Last Update Confirmed Deaths Recovered Active Death_Confirmed_Ratio 1666 235 347 1084 14.105642 143626 18279 28470 96877 12.726804 65077 7978 135 56964 12.259324 21762 2396 250 19116 11.010017 117749 12210 23206 82333 10.369515 24983 2523 5164 17296 10.098867 153222 15447 52165 85610 10.081450 9141 793 205 8143 8.675200 3293 280 252 2761 8.502885 1374 97 109 1168 7.059680 Country Region Algeria 2020-04-09 23:02:19 Italy 2020-04-09 23:02:19 United Kingdom 2020-04-09 23:02:19 Netherlands 2020-04-09 23:02:19 France 2020-04-09 23:02:19 Belgium 2020-04-09 23:02:19 Spain 2020-04-09 23:02:19 Sweden 2020-04-09 23:02:19 Indonesia 2020-04-09 23:02:19 Morocco 2020-04-09 23:02:19
please solve all parts I am in need ( in pycharm)
Question II: A data repository is maintained by Johns Hopkins University CSSE research center (https://github.com/CSSEGISandData/COVID-19/) about corona virus incidents. The site https://www.w3resource.com/python-exercises/project/covid-19/index.php includes some exercises on COVID-19 data set. You can look at these exercises before solving the following questions. First, get the latest covid data from github as follows:
# Import data
import pandas as pd
covid_data= pd.read_csv('https://raw.githubusercontent.com/CSSEGISandData/COVID19/master/csse_covid_19_data/csse_covid_19_daily_reports/05-10-2022.csv')
covid_series= pd.read_csv('https://raw.githubusercontent.com/CSSEGISandData/COVID-
19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_confirmed_global.csv')
- Display first 5 rows from COVID-19 daily summary (covid_data) and time series (covid_series) datasets.
- Write a Python program to get the latest number of confirmed, deaths, recovered and active cases of Novel Coronavirus (COVID-19) Country wise. The result should be sorted by Active cases.
- 10 pts) Write a Python program to get the countries data (Country/Region, Last Update,
-
Confirmed, Deaths, # Recovered, Active, and death_confirmed ratio) of Novel Coronavirus (COVID-19). The death_confimed_ratio is # Deaths / Confirmed * 100. The result should only contain countries where confimed cases > 1000 and be sorted by death_confirmed ratio.
- From question 2, get the list of top 10 countries according to confirmed cases. Then select data belong to the top 10 countries from convid_series data frame. By grouping with 'Country/Region', get the sum of cases in countries. Only select the columns after the date ‘3/11/21’ that is the first date in which a death case recorded in Turkey. The following figure shows a part of data you will obtain:
After getting these data, plot the graph of data by using the following code:
%matplotlib inline import matplotlib.pyplot as plt
temp2.T.plot(figsize=(15,15),lw=8)
Step by step
Solved in 2 steps