Skip to content

Conversation

@baogorek
Copy link
Collaborator

@baogorek baogorek commented Sep 10, 2025

Summary

  • Adds support for the 2024 CPS ASEC dataset (March 2024 survey)
  • Updates CPS_2024 to use actual data instead of extrapolation
  • Adds CPS_2025 as an extrapolated dataset from 2024 data
  • Oops, the branch got named "-acs". It's the CPS!

Changes

  • Added CensusCPS_2024 class to download raw 2024 ASEC data from Census
  • Updated CPS_2024 to use actual 2024 data instead of extrapolation from 2023
  • Added CPS_2025 class with extrapolation from 2024 data
  • Added DOCS_FOLDER constant to storage module for cleaner file paths
  • Fixed __file__ NameError in interactive Python environments by using path constants
  • Added tests for CPS 2024 and 2025 datasets

Test plan

  • Run pytest policyengine_us_data/tests/test_datasets/test_census_cps.py to test raw data loading
  • Run pytest policyengine_us_data/tests/test_datasets/test_cps.py to test CPS dataset generation
  • Verify CPS_2024 generates from actual data
  • Verify CPS_2025 generates via extrapolation

Fixes #436

🤖 Generated with Claude Code

baogorek and others added 2 commits September 9, 2025 23:16
- Add CensusCPS_2024 class to download March 2024 ASEC survey data
- Update CPS_2024 to use actual data instead of extrapolation
- Add CPS_2025 as extrapolated dataset from 2024
- Add DOCS_FOLDER to storage module for cleaner file paths
- Fix __file__ NameError in interactive Python environments
- Add tests for new CPS years

Fixes #436

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@baogorek baogorek requested a review from MaxGhenis September 10, 2025 03:23
@baogorek
Copy link
Collaborator Author

Tests are passing @MaxGhenis. I did have to "turn off" the parts of the testing code related to the UCGID issue, which is handled in the geo stacking PR.

@MaxGhenis MaxGhenis merged commit 392bdbc into main Sep 10, 2025
6 checks passed
@MaxGhenis MaxGhenis deleted the new-year-acs branch September 10, 2025 20:30
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.

Update to 2024 ASEC

3 participants