cowidev.megafile.steps¶
cowidev.megafile.steps.cgrt¶
merge
cowidev.megafile.steps.core¶
cowidev.megafile.steps.hosp¶
merge
cowidev.megafile.steps.jhu¶
cowidev.megafile.steps.macro¶
- cowidev.megafile.steps.macro.add_macro_variables(complete_dataset: DataFrame, macro_variables: dict, data_dir: str)[source]¶
Appends a list of ‘macro’ (non-directly COVID related) variables to the dataset The data is denormalized, i.e. each yearly value (for example GDP per capita) is added to each row of the complete dataset. This is meant to facilitate the use of our dataset by non-experts.
cowidev.megafile.steps.reprod¶
merge
cowidev.megafile.steps.test¶
- cowidev.megafile.steps.test.get_testing()[source]¶
Reads the main COVID-19 testing dataset located in /public/data/testing/ Rearranges the Entity column to separate location from testing units Checks for duplicated location/date couples, as we can have more than 1 time series per country
- Returns:
testing {dataframe}
cowidev.megafile.steps.variants¶
cowidev.megafile.steps.vax¶
cowidev.megafile.steps.xm¶
- cowidev.megafile.steps.xm._add_last12m_to_metric(df: DataFrame, column_metric: str, column_location: str, scaling: int, scaling_slug: str) DataFrame [source]¶
- cowidev.megafile.steps.xm.add_excess_mortality(df: DataFrame, wmd_hmd_file: str, economist_file: str) DataFrame [source]¶
- cowidev.megafile.steps.add_excess_mortality(df: DataFrame, wmd_hmd_file: str, economist_file: str) DataFrame [source]¶
- cowidev.megafile.steps.add_macro_variables(complete_dataset: DataFrame, macro_variables: dict, data_dir: str)[source]¶
Appends a list of ‘macro’ (non-directly COVID related) variables to the dataset The data is denormalized, i.e. each yearly value (for example GDP per capita) is added to each row of the complete dataset. This is meant to facilitate the use of our dataset by non-experts.