Skip to content

Latest commit

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

pyCensus

Common-schema census loaders for the geohierarchy package.

Each source (pycensus.USA.acs, pycensus.USA.dhc, pycensus.USA.lodes) loads data into a plain GeoDataFrame with a GEOID column and prefixed attribute columns, ready for geohierarchy.GeoHierarchy.add_level. Importing a source registers a matching accessor, e.g.:

importpycensusgdf=pycensus.USA.acs.load(aoi=my_aoi, level="tract")
gdf.acs["population"] # raw valuesgdf.acs["population"].density# value / geometry area (m2)gdf.acs["poverty_below_1_00"].relative# value / its registered total column

API keys are resolved from an explicit argument, then the environment, then api_keys.json at the package root -- see pycensus.api_keys.resolve_api_key.

pyCensus

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages