Question: The question I need help with is based on a csv file with data relating to COVID information; https://covid.ourworldindata.org/data/owid-covid-data.csv (link and screenshot is provided below)
The question I need help with is based on a csv file with data relating to COVID information;
https://covid.ourworldindata.org/data/owid-covid-data.csv (link and screenshot is provided below)
The question is based on python language and the use of the pandas library.
QUESTION 1: I am wanting get help with how to aggregate values of the variables: total cases, new cases, total deaths, new deaths using the dataframe method by the month and location in the year 2020.
(Note: if there are no entries for certain combinations of locations and months, there should be no entry for those combinations in the dataframe).
QUESTION 2: for the second question I have to add a new variable called 'case rate fatality rate' to the existing dataframe, (1 mark) adding a new variable, case fatality rate, to the dataframe in the previous question. The variable, case fatality rate, is defined as the number of deaths per confirmed case in a given period. Here do not impute missing values.
The final dataframe must include the following; location, month, case fatality rate, total cases, total deaths, new deaths. the rows should be sorted by month and location in ascending order

D14 7/03/2020 13 C E F . M N O P Q R S LJ 1 iso_code continent location date total_cases new_cases new_cases total_deati mew_death new_death total_cases new_cases_new_cases total_death new_death new_death reproducticicu_patienticu_patient hosp_patie hosp_patie week 2 AG Asia tha naLai 1 | | | | | | 1 1 0.026 0.026 Asia Afghanistan Www 1 0 0.026 0 4 AFG Asia Afghanistan 4.1 | 11 12 13 14 15 || 1 1 0 0.026 0 5 AFG Asia Afgha nistan 4-1 11 11 11 4 iii || 1 1 1 0 0.026 0 6 AFG Asia Afghanistan 4 | 1 MB 1 0 0.026 7 AFG Asia | Afghanistal FHHHHH 1 0.143 0 0.026 0 0.004 0 AFG Asia Atghanistai 1/03/2020 1 0 0.142 0 0.026 0 0.004 0 9 AFG Asia Atghanistai 2/03/2020 1 0 0 0 0.026 0 0 0 10 AFG Asia Afghanista13/03/2020 2 1 0.143 0.051 0.026 0.004 0 11 AFG Asia Afghanistai 4/03/2020 4 2 0.429 O 0.103 0.051 0.011 12 AFG Asia Afghanistai 5/03/2020 4 0 0.429 0 0 0.103 0 0.011 0 13 AFG Asia Afghanistar 6/03/2020 1 0 0.429 0 0.103 0 0.011 U 14 AFG Asia Afghanista /03/2020 1 1 0 0.429 0 0.103 0 0.011 0 15 AFG Asla Afghe lstar 808/2020 5 1 0.5/1 0 0.128 0.026 0.015 U 16 AFG Asia Afghanista19/03/2020 7 2 0.857 0 0.18 0.051 0.022 0 17 AFG Asia Afghanistan 8 1 0.857 0 0 0.206 0.026 0.022 0 18 AFG Asia Afghanistan 11 3 1 1 0 0.283 0.077 0.026 0 19 ATG Asia Afghanista ( 1 || || || || 12 1 1.143 0 0.308 0.026 0.029 0 20 ATG Asia Afghanistan 4.1 | 11 11 : || || 13 1 1.286 0 0.334 0.026 0.013 21 AFG Asia Alghanista MMI 15 2 1.571 0 0.385 0.051 0.04 0 22 AFG Asia Afghanistat Walt 16 1 1 1.571 0 0.411 0.026 0.04 23 AFG Asia Afghanital ### 18 2 1.571 0 0.462 0.051 0.04 0 24 AFG Asia AfghinIPEI #HH 20 7 1.714 0 0.514 0.051 0.044 0 25 AFG Asia Afghanistan 4 11 41 24 4 1,857 0 0.617 0.103 0.048 0 26 AFG Asia Afghanistan | | | | | 25 1 1.857 0 0.642 0.026 0.048 0 27 AFG Asia Atghanista ### 29 4 2.286 0 0.745 0.103 0.059 0 26 AFG Asia Afghe nista | | | | | | 30 1 2.143 0 0.771 0.026 0.055 0 29 AFG Asia Afghe nista ####### 34 4 2.571 1 1 0.143 0.873 0.103 0.066 0.026 0.026 0.004 30 AFG Asia Afghanistai #### 11 7 3.286 1 0 0.113 1.053 0.18 0.081 0.026 0 0.001 31 AFG Asla Afghanistar #### 43 2 3.286 1 0 0.143 1.105 0.051 0.081 0.026 0 0.004
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
