Skip to main content

Redistribute 2010-2019 census data onto 2020 census boundaries

Project description

sdc-census10to20

Redistribute 2010-2019 census data onto 2020 census boundaries.

This is the Python port of the R package 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

pip install sdc-census10to20

Quick start

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

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sdc_census10to20-0.1.1.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sdc_census10to20-0.1.1-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file sdc_census10to20-0.1.1.tar.gz.

File metadata

  • Download URL: sdc_census10to20-0.1.1.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sdc_census10to20-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f99c701efc7a53f933ec8d6e46ae5bd132fbf9810563aa59ae72fc8527d0914a
MD5 4d7943d8b88c88889691f758fdea2284
BLAKE2b-256 ab9f928e2a0bab5d7c189710433ed5d0609a49954e7684a04b6921a059e04508

See more details on using hashes here.

Provenance

The following attestation bundles were made for sdc_census10to20-0.1.1.tar.gz:

Publisher: publish-census10to20.yml on dads2busy/Social-Data-Commons

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sdc_census10to20-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for sdc_census10to20-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 495b70cece657ee2b1a2aa580f4880927c2c78c98657bcb33d082bdc73b75015
MD5 91ce5cbe8dbd49647b346583a9d89479
BLAKE2b-256 ef23a6483bf0b98c124a9ac0453cda1d04575c26bfdecf5e5e8f902af25f6b79

See more details on using hashes here.

Provenance

The following attestation bundles were made for sdc_census10to20-0.1.1-py3-none-any.whl:

Publisher: publish-census10to20.yml on dads2busy/Social-Data-Commons

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page