Check the setup
- Python 3.10 or newer
- A notebook environment such as Jupyter or Google Colab
- An internet connection
Weekly provisional U.S. death counts by jurisdiction for building mortality monitors and excess-death research prototypes.
From source to product signal
NCHS publishes weekly provisional death counts on data.cdc.gov. Start with one jurisdiction and all-cause deaths. Provisional counts are incomplete, lag varies by state, and they are not cause-specific research files from WONDER.
Install the packages, then run the notebook cell.
python -m pip install pandas requests
import pandas as pd
import requests
response = requests.get(
"https://data.cdc.gov/resource/muzy-jte6.json",
params={
"$where": "jurisdiction_of_occurrence='California'",
"$limit": 52,
"$order": "week_ending_date DESC",
},
timeout=30,
)
response.raise_for_status()
deaths = pd.DataFrame(response.json())
deaths["retrieved_at_utc"] = pd.Timestamp.now(tz="UTC")
print(deaths.head())Test a useful signal
Test whether provisional counts can power a bounded mortality sparkline.
National Center for Health Statistics is a government source. Last verified 2026-08-18. Temporal coverage: weekly provisional death counts with lagged completeness.