Example #1
0
 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
Example #2
0
 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
Example #3
0
 def deaths(self) -> pd.DataFrame:
     deaths = self.raw_deaths()
     deaths = transformations.cumulative_to_new(deaths)
     deaths['ISO'] = ISO
     return deaths
Example #4
0
 def cases(self) -> pd.DataFrame:
     raw_cases = self.raw_cases()
     cases = transformations.cumulative_to_new(raw_cases)
     cases['ISO'] = ISO
     return cases