Skip to content

Conversation

@anth-volk
Copy link
Contributor

@anth-volk anth-volk commented Mar 18, 2025

Fixes #5734

This PR modifies the county variable to determine a situation's county value from FIPS code if all items in a given vector input possess one, otherwise county continues to apply its default ZIP code-based formula. This will allow us to create households with input county FIPS values without modifying how we do society-wide simulations.

Requires PolicyEngine/policyengine-us-data#195 to be closed and merged before tests will pass.

@anth-volk anth-volk force-pushed the feat/fips-county-mapping branch from aebb901 to e60e8ab Compare March 27, 2025 23:27
@anth-volk anth-volk marked this pull request as ready for review March 28, 2025 23:31
Copy link
Collaborator

@PavelMakarchuk PavelMakarchuk left a comment

Choose a reason for hiding this comment

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

LGTM

@PavelMakarchuk PavelMakarchuk requested a review from MaxGhenis April 1, 2025 10:57
@PavelMakarchuk
Copy link
Collaborator

Non-blocking - only thing I could suggest is to think about using pd.merge instead of .loc for the ability to debug through Nan values and future flexibility

@anth-volk anth-volk merged commit 8ceb718 into master Apr 1, 2025
3 checks passed
@anth-volk anth-volk deleted the feat/fips-county-mapping branch April 1, 2025 18:27
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.

Map county FIPS codes to county enum and use FIPS inputs to set county

3 participants