Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/microplex_us/data_sources/cps.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@

# CPS ASEC data URLs by year
CPS_URLS = {
2025: "https://www2.census.gov/programs-surveys/cps/datasets/2025/march/asecpub25csv.zip",
2024: "https://www2.census.gov/programs-surveys/cps/datasets/2024/march/asecpub24csv.zip",
2023: "https://www2.census.gov/programs-surveys/cps/datasets/2023/march/asecpub23csv.zip",
2022: "https://www2.census.gov/programs-surveys/cps/datasets/2022/march/asecpub22csv.zip",
2021: "https://www2.census.gov/programs-surveys/cps/datasets/2021/march/asecpub21csv.zip",
Expand Down
5 changes: 5 additions & 0 deletions tests/test_cps_source_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,16 @@
_attach_cps_ssn_card_type,
_cps_age_band_key,
_sample_households_and_persons,
get_available_years,
load_cps_asec,
processed_cps_asec_cache_path,
)


def test_cps_asec_available_years_include_latest_survey():
assert max(get_available_years()) == 2025


def test_cps_parquet_source_provider_loads_observation_frame(tmp_path):
households = pd.DataFrame(
{
Expand Down
Loading