Check the setup
- Python 3.10 or newer
- A notebook environment such as Jupyter or Google Colab
- Enough memory for one national county boundary file
Official U.S. geographic boundaries and feature codes for building maps, spatial joins, service-area analyses, and demographic products.
From source to product signal
TIGER/Line files provide official geographic boundaries and identifiers that join to Census statistics. Start with the national county file for one pinned vintage and one ACS variable. Boundaries change over time, and the geometry files contain no demographic measurements themselves.
Install the packages, then run the notebook cell.
python -m pip install geopandas pandas
import geopandas as gpd
import pandas as pd
counties = gpd.read_file(
"https://www2.census.gov/geo/tiger/TIGER2025/COUNTY/tl_2025_us_county.zip"
)[["GEOID", "NAME", "STATEFP", "geometry"]]
california = counties[counties["STATEFP"] == "06"].copy()
california["retrieved_at_utc"] = pd.Timestamp.now(tz="UTC")
print(california[["GEOID", "NAME"]].head(20))Test a useful signal
Create a California county layer that can join safely to ACS five-year estimates.
U.S. Census Bureau is a government source. Last verified 2026-08-13. Temporal coverage: annual boundary vintages from 2007-present.