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: raw_cases = self.raw_cases() cases = transformations.periodic_to_daily(raw_cases) cases = transformations.rescale( cases, self._reference_data.query(f'ISO == "{ISO}"'), 'cases_new') cases['ISO'] = ISO return cases
def deaths(self) -> pd.DataFrame: deaths = self.raw_deaths() deaths = transformations.periodic_to_daily(deaths) deaths['ISO'] = ISO return deaths