Collection of commonly used datasets and functions. Datasets are stored in kintsugi-data.
# with uv via HTTPS
uv add git+https://github.com/winter-again/kintsugi
# with uv via SSH
uv add git+ssh://git@github.com/winter-again/kintsugi
# with pip via HTTPS
pip install git+https://github.com/winter-again/kintsugi
# with pip via SSH
pip install git+ssh://git@github.com/winter-again/kintsugiCurrently supported datasets. Where appropriate, you can pass as_pandas=True to get a pandas dataframe back:
County neighbors
from kintsugi.neighbors import county_neighbors
neighbors = county_neighbors()State and county shapefiles
from kintsugi.geo import county_geo, state_geo
counties = county_geo(2024)
states = state_geo(2024)State and county population data, stratified by several different variables:
from kintsugi.population import county_pop, state_age_pop
lf_county_pop = county_pop(2024)
lf_state_age_pop = state_age_pop(2024)Low-population county groups
from kintsugi.county_groups import county_groups
lf_county_grps = county_groups()State FIPS codes, names, and abbreviations
from kintsugi.metadata import states
lf_states = states()Year-specific county FIPS codes
from kintsugi.metadata import counties
lf_counties = counties(2020)Crosswalk 2010 PUMAs to 2020 counties
from kintsugi.crosswalk import puma_2010_county_2020
crosswalk = puma_2010_county_2020()