Skip to content

Conversation

@nmdefries
Copy link
Contributor

Description

In case CHNG makes changes to their county mappings, include the code that takes the Google spreadsheet, assigns group numbers, and saves locally. Be careful to keep from reusing group numbers within a state. Doing so would make historical data uninterpretable or difficult to use/document.

Changelog

  • geo_data_proc.py

Copy link
Contributor

@krivard krivard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice refactor, but it might be too nice -- we should resolve the already-exists handling before merging.

Copy link
Contributor

@dshemetov dshemetov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Second Katie's comment. Should be g2g after!

We can't rely on the component counties of a group being listed
individually, so reconstruct those fields ourselves based on the
concatenated `fips_list` field. Split by the separator (pipe `|`) and
save each result to a new column.
@nmdefries nmdefries requested review from dshemetov and krivard March 13, 2023 14:40
Copy link
Contributor

@dshemetov dshemetov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor nit and 🚀

Co-authored-by: Dmitry Shemetov <[email protected]>
@nmdefries
Copy link
Contributor Author

@korlaxxalrok This is ready to merge.

@korlaxxalrok korlaxxalrok merged commit f785b22 into ndefries/geomapper/popsafe-county-level Mar 14, 2023
@nmdefries nmdefries deleted the ndefries/geomapper/chng-fips-map-generation branch March 14, 2023 15:01
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.

5 participants