You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add Phase 4: tidy output, MOE scaling, geometry for flows, and survey metadata (#298)
* Add Phase 4: tidy output, MOE scaling, geometry for flows, and survey metadata
Implement stubbed parameters across estimates and flows modules:
- output="tidy" support for get_estimates() and get_flows()
- moe_level scaling (90/95/99) for get_flows()
- geometry support for get_flows() via attach_geometry()
- GEOID construction for flows from origin FIPS columns
Add get_survey_metadata() in pypums/survey.py that fetches dataset
catalog from the Census API discovery endpoint, with optional year
filtering.
Export get_survey_metadata from pypums/__init__.py.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Fix review feedback: cache keys, MSA geometry mapping, stale docs
- Include output and moe_level in cache keys for flows.py and
estimates.py to prevent stale cache hits across different formats
- Map 'metropolitan statistical area' to 'cbsa' before calling
attach_geometry() so geometry=True works for MSA-level flows
- Remove stale 'Not yet implemented' docstring from estimates.py
output parameter
- Scaffold column names in get_survey_metadata() so empty catalogs
return a DataFrame with the expected columns
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments