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.2.tar.gz (8.8 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.2-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sdc_census10to20-0.1.2.tar.gz
  • Upload date:
  • Size: 8.8 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.2.tar.gz
Algorithm Hash digest
SHA256 855c30e441f043a5076f4a35eb8d2a5222a4bdc3dd4ba8739f13b937331bde41
MD5 b283120009d02680b753205d0b5bd837
BLAKE2b-256 410bfe0f4c10d88cc34fa1e68ed0281600a3fe1913cb1193624ca6fccc3088e5

See more details on using hashes here.

Provenance

The following attestation bundles were made for sdc_census10to20-0.1.2.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.2-py3-none-any.whl.

File metadata

File hashes

Hashes for sdc_census10to20-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 37299fb5804ad19d48b0228c11c2746376aabd6268a37e780ad9d976279f684f
MD5 c5baf60b2202c32fd1dd543b771f388b
BLAKE2b-256 fe13da937b8e2e133c2247a0ee0b1078571eaf07ff67d2100a712dbc349fca97

See more details on using hashes here.

Provenance

The following attestation bundles were made for sdc_census10to20-0.1.2-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