cowidev.yougov¶
cowidev.yougov.__main__¶
- class cowidev.yougov.__main__.YouGov(output_path: str, debug: bool = False)[source]¶
Bases:
object
- _read_country_from_web(source_url_country, extension)[source]¶
Given URL, reads individual country data.
- property list_countries¶
Get list of countries to download.
- property output_csv_path¶
- property output_csv_path_composite¶
- property source_url_master¶
- cowidev.yougov.__main__._subset_and_rename_columns(df)[source]¶
keeps only the survey questions with keep=True in mapping.csv and renames columns. Note: we do not use df.rename(columns={…}) because for some columns we
derive multiple variables.
python -m cowidev.yougov