Add sldu and sldl variables for state legislative districts #7249
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Adds comprehensive set of geographic input variables from Census Bureau for granular geographic analysis:
block_geoid: 15-digit census block identifier (most granular geographic unit)tract_geoid: 11-digit census tract identifiercbsa_code: Core-Based Statistical Area (metro/micro area)place_fips: City/CDP place codevtd: Voting Tabulation Districtpuma: Public Use Microdata Areasldu: State Legislative District Upper (state senate)sldl: State Legislative District Lower (state assembly/house)zcta: ZIP Code Tabulation Area (Census approximation of ZIP codes)These variables enable analysis at multiple geographic granularities. All can be derived from
block_geoidduring dataset builds using the policyengine-us-data block assignment infrastructure.This is a prerequisite for policyengine-us-data#484 which adds census block-level geographic assignment that can populate these variables during dataset builds.
Test plan
🤖 Generated with Claude Code