text_plain_output_1.png
from datetime import date

import pandas as pd

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

df = pd.read_csv('../input/ebola-outbreak-20142016-complete-dataset/ebola_2014_2016_clean.csv')

import datetime as dt
from datetime import date
df['Dates'] = pd.to_datetime(df['Date'])
df['Year'] = df.Dates.dt.year
df['Month_name'] = df.Dates.dt.month_name()
df['Day_name'] = df.Dates.dt.day_name()
df['Month'] = df.Dates.dt.month
df['Week'] = df.Dates.dt.week
df['Day_of_year'] = df.Dates.dt.dayofyear

d0 = date(2014, 8, 29)
d1 = date(2016, 3, 23)
delta = d1 - d0

df.shape

df.groupby('Country')['No. of confirmed cases', 'No. of confirmed deaths'].sum()

df.groupby('Country')['No. of confirmed cases'].sum().nlargest(3)

df.groupby('Country')['No. of confirmed deaths'].sum().nlargest(3)