def cases(self) -> pd.DataFrame: cases = self.raw_cases() cases = transformations.add_both_sexes(cases) cases = transformations.cumulative_to_new(cases) cases = transformations.periodic_to_daily(cases) cases['ISO'] = ISO return cases
def cases(self) -> pd.DataFrame: cases = self.raw_cases() cases = transformations.ensure_contiguous(cases) cases = transformations.cumulative_to_new(cases) cases = transformations.add_both_sexes(cases) cases = cases.query('Date > "2020-03-25"') cases['ISO'] = ISO return cases
def deaths(self) -> pd.DataFrame: deaths = self.raw_deaths() deaths = transformations.cumulative_to_new(deaths) deaths['ISO'] = ISO return deaths
def cases(self) -> pd.DataFrame: raw_cases = self.raw_cases() cases = transformations.cumulative_to_new(raw_cases) cases['ISO'] = ISO return cases