Metadata-Version: 2.4
Name: sdc-census10to20
Version: 0.1.2
Summary: Redistribute 2010-2019 census data onto 2020 census boundaries
Project-URL: Homepage, https://dads2busy.github.io/Social-Data-Commons/packages/sdc-census10to20/
Project-URL: Documentation, https://dads2busy.github.io/Social-Data-Commons/packages/sdc-census10to20/
Project-URL: Repository, https://github.com/dads2busy/Social-Data-Commons
Project-URL: Issues, https://github.com/dads2busy/Social-Data-Commons/issues
Project-URL: Changelog, https://github.com/dads2busy/Social-Data-Commons/blob/main/packages/sdc-census10to20/CHANGELOG.md
Author-email: Aaron Schroeder <ads7fg@virginia.edu>
License: MIT
License-File: LICENSE
Keywords: block-group,census,crosswalk,geography,redistribution,tract
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Scientific/Engineering :: GIS
Classifier: Topic :: Scientific/Engineering :: Information Analysis
Requires-Python: >=3.10
Requires-Dist: pandas>=2.0
Provides-Extra: dev
Requires-Dist: pytest>=8; extra == 'dev'
Requires-Dist: ruff>=0.8; extra == 'dev'
Provides-Extra: docs
Requires-Dist: mkdocs-material>=9.5; extra == 'docs'
Requires-Dist: mkdocs>=1.6; extra == 'docs'
Requires-Dist: mkdocstrings[python]>=0.24; extra == 'docs'
Description-Content-Type: text/markdown

# sdc-census10to20

Redistribute 2010-2019 census data onto 2020 census boundaries.

This is the Python port of the R package
[`sdc.census10to20`](https://uva-bi-sdad.github.io/sdc.census10to20/), used by
the Social Data Commons pipelines to standardize tract- and block-group-level
data across the 2020 decennial census boundary changes.

## Install

```bash
pip install sdc-census10to20
```

## Quick start

```python
import pandas as pd
from sdc_census10to20 import standardize_all

df = pd.DataFrame({
    "geoid": ["51059450100", "51059450200"],
    "year": [2018, 2018],
    "measure": ["population", "population"],
    "value": [3000, 4500],
    "moe": [pd.NA, pd.NA],
})

standardized = standardize_all(df)
```

## Documentation

- [Introduction](https://dads2busy.github.io/Social-Data-Commons/packages/sdc-census10to20/articles/introduction/)
- [API reference](https://dads2busy.github.io/Social-Data-Commons/packages/sdc-census10to20/reference/standardize_all/)

## License

MIT
