Python Codes and Comments
Python Codes and Comments
1. (4.5 marks, 1.5 marks for each) Good structure of Python Jupyter Notebook
b. Python codes are reasonable separated into groups (code cells) with functionalities.
import pandas as pd
deaths_df =
pd.read_csv('https://github.com/CSSEGISandData/COVID 19/blob/master/csse_covid_19_data/csse
_covid_19_time_series/time_series_covid19_deaths_
global.csv’)
3. (3 marks) Display first 5 rows of the loaded data (1 mark) and do a short summary about the data
(2 marks)
4. (2.5 marks) Calculate the mean and median of the daily cases.
5. (3 marks) Get daily death cases worldwide (hint: summarizing daily death cases over all countries.
6. (3 marks) Get daily incensement of deaths cases via defining a function (hint: use the death cases
of today minus the death cases of yesterday from the data obtained in task 5.