Skip to content

CensusACS5YearSurvey_SubjectTables_S2702PR - #2247

Open
shourya116 wants to merge 6 commits into
datacommonsorg:masterfrom
shourya116:CensusACS5YearSurvey_SubjectTables_S2702PR
Open

shourya116 wants to merge 6 commits into
datacommonsorg:masterfrom
shourya116:CensusACS5YearSurvey_SubjectTables_S2702PR

Conversation

@shourya116

@shourya116 shourya116 commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Import Name - CensusACS5YearSurvey_SubjectTables_S2702PR
PR checklist - Doc

Summary of Changes

  • Added s2702pr_spec.json, README.md, and testdata/ (s2702pr_test.zip, column_map.json, s2702pr_cleaned.csv, s2702pr_output.mcf, s2702pr_output.tmcf) under scripts/us_census/acs5yr/subject_tables/s2702pr/ to support the 2024 ACS 5-year data refresh (covering survey years 2013–2024) for Table S2702PR (Selected Characteristics of the Uninsured in Puerto Rico) and pass CI unit tests (subject_table_test.py).
  • Extended denominators and ignoreColumns in s2702pr_spec.json to handle year-specific inflation-adjusted column headers for 2020–2024 (EARNINGS IN THE PAST 12 MONTHS (IN 2020..2024 INFLATION ADJUSTED DOLLARS) and HOUSEHOLD INCOME (IN 2020..2024 INFLATION ADJUSTED DOLLARS)).
  • Configured Puerto Rico-specific residentStatus mappings (Same municipio, Different municipio, In Puerto Rico, In the United States, Elsewhere) and aligned token mappings for "Civilian noninstitutionalized population 16 years and older with earnings" across preprocess, pvs, ignoreColumns, and denominators.
  • Scoped the $50,000 to $74,999 preprocess.find_and_replace rules to the exact 2013–2018 Earnings column headers, ignored median Margin of Error columns and the $50,000 to $74,999 Household Income Estimate/MOE columns across 2019–2024, and removed ignored/dead .1 Household Income $50,000 to $74,999 entries from denominators and find_and_replace for consistency across 2013–2024.
  • Verified with subject_table_test.py and confirmed 0 sanity errors in report.json.

CRA Report - link

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@shourya116 shourya116 changed the title Added the spec file CensusACS5YearSurvey_SubjectTables_S2702PR Oct 4, 2026
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.

1 participant