Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to using our ETL derived Population dataset #9

Open
danyx23 opened this issue Aug 17, 2022 · 0 comments
Open

Switch to using our ETL derived Population dataset #9

danyx23 opened this issue Aug 17, 2022 · 0 comments

Comments

@danyx23
Copy link
Contributor

danyx23 commented Aug 17, 2022

The most up to date population dataset that we have at OWID is the one that is created in our ETL pipeline. We should add a script that fetches the latest version of this dataset and transforms it into the form the cartogram needs so that we can easily update the cartograms when the population dataset updates.

To fetch the population dataset in a python script, first pip install the library owid-catalog: pip install owid-catalog, then run this code in python:

from owid import catalog
dataframe = catalog.find('population', namespace="owid", dataset="key_indicators").load()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant