def __init__(self): self.key_col = 'state_and_county' self.dataset_name = 'deaths' nyt = NYTDataCountyLevel(dataset_name=self.dataset_name) nyt.run() enhanced = utils.AddDailyFields(data_obj=nyt) enhanced.create_daily_new_col() self.data = enhanced.data
def __init__(self): url = "https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_deaths_global.csv" self.dataset_name = 'deaths' data_obj = JHUDataGlobal(url=url, dataset_name=self.dataset_name) data_obj.run() enhanced = utils.AddDailyFields(data_obj=data_obj) enhanced.create_daily_new_col() self.data = enhanced.data