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

UN SDG - bulk import of UN SDG code #6

Merged
merged 68 commits into from
Jul 15, 2021
Merged

UN SDG - bulk import of UN SDG code #6

merged 68 commits into from
Jul 15, 2021

Conversation

spoonerf
Copy link
Contributor

@spoonerf spoonerf commented Jun 21, 2021

Code for the bulk upload the UN Sustainable Development Goals data.

Data is downloaded from the SDG API

Code takes about two hours to run from scratch.

…the date the raw data file was last modified
…g, adding reset_index back, reserving all caps for globals vars
…r_and_series() function considerably by passing it a pre-made dict rather than invoking each time the function is run - which is a lot
…sert instead to check no duplicates of years and countries in datapoint output
…eries 10.c.1 - SI_RMT_COST_BC. Values are not unique to country-year pairs as they describe relationships between pairs of nations so a nation can appear multiple times in the same year
…kipping some tricky variables and zippint datapoints using absolute path
…xible and works when keep_paths is longer than 1
… previous 'un_sdg' rather than just most recent
…m keep_paths as it has been moved to CONFIGPATH
@larsyencken
Copy link
Contributor

Ignore the failing CI checks for now, btw. They won't mean anything until the other PR gets merged. After that, they will begin offering more useful error messages.

@spoonerf spoonerf merged commit c723b03 into master Jul 15, 2021
@bnjmacdonald bnjmacdonald deleted the un_sdg_fiona branch September 7, 2021 13:35
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

Successfully merging this pull request may close these issues.

None yet

4 participants