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.3.tar.gz (9.4 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.3-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sdc_census10to20-0.1.3.tar.gz
  • Upload date:
  • Size: 9.4 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.3.tar.gz
Algorithm Hash digest
SHA256 472a191816654ec6d14dc4d4ae366a3bb5c16992c4b8143b55ee2a10ee018df2
MD5 59920ae42ed0b7bb93b2ee0ee714c329
BLAKE2b-256 e03746d95dc099fa24c9948fec30324d41c2a1525e167665b0afdfd4b2472c9d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for sdc_census10to20-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 04cd6f258da5b83072dec9d95ebedab4bd2807f671c6e272789bf6864c6c6e84
MD5 d67202a798fc595dbc919257c9b8ea46
BLAKE2b-256 a1a59217c587176228b60c6d74842c391d1c63ad8f39197a74fc94ddce3c7c72

See more details on using hashes here.

Provenance

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