Skip to main content

censusdis

U.S. Map of Integration

Hippocratic License HL3-CL-ECO-EXTR-FFD-LAW-MIL-SV PyPI PyPI - Python Version

PyPI - Status PyPI - Format PyPI - Downloads

GitHub last commit Tests Badge Coverage Badge Documentation Status

censusdis is a package for discovering, loading, and analyzing U.S. Census data. It is designed

  • to support every dataset, every geography, and every year. It's not just about ACS data through the last time the software was updated and released;
  • to support all geographies, on and off-spine, not just states, counties, and census tracts;
  • to have integrated mapping capabilities that save you time and extra coding;
  • to be intuitive, Pythonic, and fast.

Note:

For the full README, please visit the censusdis source repository.

Installation and First Example

censusdis can be installed with pip:

pip install censusdis

Every censusdis query needs four things:

  1. What data set we want to query.
  2. What vintage, or year.
  3. What variables.
  4. What geographies.

Here is an example of how we can use censusdis to download data once we know those four things.

import censusdis.data as ced
from censusdis.datasets import ACS5
from censusdis import states

df_median_income = ced.download(
    # Data set: American Community Survey 5-Year
    dataset=ACS5,
    # Vintage: 2022
    vintage=2022,
    # Variable: median household income
    download_variables=["NAME", "B19013_001E"],
    # Geography: All counties in New Jersey.
    state=states.NJ,
    county="*",
)

There are many more examples in the tuturial and in the sample notebooks.

Tutorial (A Great Place to Start!)

For a tutorial, please see the censusdis-tutorial repository. This tutorial was presented at PyData Seattle 2023. If you want to try it out for yourself, the README.md contains links that let you run the tutorial notebooks live on mybinder.org in your browser without needing to set up a local development environment or download or install any code.

Tutorial Video

A 86 minute video of the tutorial as presented at PyData Seattle 2023 is also available.

PyData Seattle Tutorial Video

More Details

For the full README, lots of maps, demo notebooks, and more, please visit the censusdis source repository.

Metadata

Release files for censusdis 1.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for censusdis 1.5.1
File Size Uploaded Provenance Actions
censusdis-1.5.1.tar.gz 393.3 kB Without provenance Details for censusdis-1.5.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for censusdis 1.5.1
File Interpreter ABI Platform Actions
censusdis-1.5.1-py3-none-any.whl Python 3 none any Details for censusdis-1.5.1-py3-none-any.whl

Total release size: 829.6 kB

Release files / censusdis-1.5.1.tar.gz

Download URL censusdis-1.5.1.tar.gz
Size 393.3 kB
Tags Source
SHA-256 checksum
How to use checksums
2ebf1f39adf25691eab9a4ca5a943d7dec235bd55926bccaa9f5e00f8fbf1b22
BLAKE2b-256 checksum
How to use checksums
e7fd58d888850aa122600a3fc8dd3769218fc9169e43ead7f41186b58dbcefe2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.5.2 CPython/3.11.4 Darwin/24.6.0

Release files / censusdis-1.5.1-py3-none-any.whl

Download URL censusdis-1.5.1-py3-none-any.whl
Size 436.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a20544654d7817955e44633f68a06fc9949ff8bddaef57ec906d0a057a0c7199
BLAKE2b-256 checksum
How to use checksums
923c5b69dc0d70b245781872f449486a356c1caf12b4097bfb815d154033c9c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.5.2 CPython/3.11.4 Darwin/24.6.0

Security for censusdis 1.5.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.5.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page