text_html_output_1.png
import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

lockdown_df = pd.read_csv(files['countryLockdowndates.csv'])
lockdown_df['LockDown Date'] = pd.to_datetime(lockdown_df['Date'], format='%d/%m/%Y')
lockdown_df.sort_values('LockDown Date', inplace=True)
df = pd.read_csv(files['time_series_covid_19_confirmed.csv'])
df[df.columns[df.columns.str.contains('/20')]] = df[df.columns[df.columns.str.contains('/20')]].clip(lower=0)
country_col = 'Country/Region'
confirmed_col = 'Confirmed Cases'
df.head()