The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Error code: DatasetGenerationCastError
Exception: DatasetGenerationCastError
Message: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 2 new columns ({'year_month', 'month'}) and 2 missing columns ({'birth_rate_per_1000', 'general_fertility_rate_per_1000_women_15_44'}).
This happened while the csv dataset builder was generating data using
hf://datasets/LeviDahl/us-mortality-births/us_births_monthly.csv (at revision 962e85e8199ce6380825cc99479e5913b84e3b23), ['hf://datasets/LeviDahl/us-mortality-births@962e85e8199ce6380825cc99479e5913b84e3b23/us_births_annual.csv', 'hf://datasets/LeviDahl/us-mortality-births@962e85e8199ce6380825cc99479e5913b84e3b23/us_births_monthly.csv', 'hf://datasets/LeviDahl/us-mortality-births@962e85e8199ce6380825cc99479e5913b84e3b23/us_deaths_by_cause_annual.csv', 'hf://datasets/LeviDahl/us-mortality-births@962e85e8199ce6380825cc99479e5913b84e3b23/us_deaths_monthly.csv']
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1856, in _prepare_split_single
writer.write_table(table)
~~~~~~~~~~~~~~~~~~^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 811, in write_table
self._write_table(pa_table, writer_batch_size=writer_batch_size)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 822, in _write_table
pa_table = table_cast(pa_table, self._schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2381, in table_cast
return cast_table_to_schema(table, schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2309, in cast_table_to_schema
raise CastError(
...<3 lines>...
)
datasets.table.CastError: Couldn't cast
year_month: string
year: int64
month: int64
births: int64
-- schema metadata --
pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 719
to
{'year': Value('int64'), 'births': Value('int64'), 'birth_rate_per_1000': Value('float64'), 'general_fertility_rate_per_1000_women_15_44': Value('float64')}
because column names don't match
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1379, in compute_config_parquet_and_info_response
parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
~~~~~~~~~~~~~~~~~~~~~~~~~^
builder, max_dataset_size_bytes=max_dataset_size_bytes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 956, in stream_convert_to_parquet
builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1702, in _prepare_split
for job_id, done, content in self._prepare_split_single(
~~~~~~~~~~~~~~~~~~~~~~~~~~^
gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
):
^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1858, in _prepare_split_single
raise DatasetGenerationCastError.from_cast_error(
...<4 lines>...
)
datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 2 new columns ({'year_month', 'month'}) and 2 missing columns ({'birth_rate_per_1000', 'general_fertility_rate_per_1000_women_15_44'}).
This happened while the csv dataset builder was generating data using
hf://datasets/LeviDahl/us-mortality-births/us_births_monthly.csv (at revision 962e85e8199ce6380825cc99479e5913b84e3b23), ['hf://datasets/LeviDahl/us-mortality-births@962e85e8199ce6380825cc99479e5913b84e3b23/us_births_annual.csv', 'hf://datasets/LeviDahl/us-mortality-births@962e85e8199ce6380825cc99479e5913b84e3b23/us_births_monthly.csv', 'hf://datasets/LeviDahl/us-mortality-births@962e85e8199ce6380825cc99479e5913b84e3b23/us_deaths_by_cause_annual.csv', 'hf://datasets/LeviDahl/us-mortality-births@962e85e8199ce6380825cc99479e5913b84e3b23/us_deaths_monthly.csv']
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
year int64 | births int64 | birth_rate_per_1000 float64 | general_fertility_rate_per_1000_women_15_44 float64 |
|---|---|---|---|
1,960 | 4,257,850 | 23.7 | 118 |
1,961 | 4,268,326 | 23.3 | 117.1 |
1,962 | 4,167,362 | 22.4 | 112 |
1,963 | 4,098,020 | 21.7 | 108.3 |
1,964 | 4,027,490 | 21.1 | 104.7 |
1,965 | 3,760,358 | 19.4 | 96.3 |
1,966 | 3,606,274 | 18.4 | 90.8 |
1,967 | 3,520,959 | 17.8 | 87.2 |
1,968 | 3,501,564 | 17.6 | 85.2 |
1,969 | 3,600,206 | 17.9 | 86.1 |
1,970 | 3,731,386 | 18.4 | 87.9 |
1,971 | 3,555,970 | 17.2 | 81.6 |
1,972 | 3,258,411 | 15.6 | 73.1 |
1,973 | 3,136,965 | 14.8 | 68.8 |
1,974 | 3,159,958 | 14.8 | 67.8 |
1,975 | 3,144,198 | 14.6 | 66 |
1,976 | 3,167,788 | 14.6 | 65 |
1,977 | 3,326,632 | 15.1 | 66.8 |
1,978 | 3,333,279 | 15 | 65.5 |
1,979 | 3,494,398 | 15.6 | 67.2 |
1,980 | 3,612,258 | 15.9 | 68.4 |
1,981 | 3,629,238 | 15.8 | 67.3 |
1,982 | 3,680,537 | 15.9 | 67.3 |
1,983 | 3,638,933 | 15.6 | 65.7 |
1,984 | 3,669,141 | 15.6 | 65.5 |
1,985 | 3,760,561 | 15.8 | 66.3 |
1,986 | 3,756,547 | 15.6 | 65.4 |
1,987 | 3,809,394 | 15.7 | 65.8 |
1,988 | 3,909,510 | 16 | 67.3 |
1,989 | 4,040,958 | 16.4 | 69.2 |
1,990 | 4,158,212 | 16.7 | 70.9 |
1,991 | 4,110,907 | 16.2 | 69.3 |
1,992 | 4,065,014 | 15.8 | 68.4 |
1,993 | 4,000,240 | 15.4 | 67 |
1,994 | 3,952,767 | 15 | 65.9 |
1,995 | 3,899,589 | 14.6 | 64.6 |
1,996 | 3,891,494 | 14.4 | 64.1 |
1,997 | 3,880,894 | 14.2 | 63.6 |
1,998 | 3,941,553 | 14.3 | 64.3 |
1,999 | 3,959,417 | 14.2 | 64.4 |
2,000 | 4,058,814 | 14.4 | 65.9 |
2,001 | 4,025,933 | 14.1 | 65.1 |
2,002 | 4,021,726 | 14 | 65 |
2,003 | 4,089,950 | null | 66.09 |
2,004 | 4,112,052 | null | 66.36 |
2,005 | 4,138,349 | null | 66.67 |
2,006 | 4,265,555 | null | 68.59 |
2,007 | 4,316,233 | null | 69.29 |
2,008 | 4,247,694 | null | 68.12 |
2,009 | 4,130,665 | null | 66.23 |
2,010 | 3,999,386 | null | 64.12 |
2,011 | 3,953,590 | null | 63.24 |
2,012 | 3,952,841 | null | 63 |
2,013 | 3,932,181 | null | 62.48 |
2,014 | 3,988,076 | null | 62.95 |
2,015 | 3,978,497 | null | 62.55 |
2,016 | 3,945,875 | null | 62.03 |
2,017 | 3,855,500 | null | 60.28 |
2,018 | 3,791,712 | null | 59.09 |
2,019 | 3,747,540 | null | 58.26 |
2,020 | 3,613,647 | null | 55.99 |
2,021 | 3,664,292 | null | 56.27 |
2,022 | 3,667,758 | null | 55.97 |
2,023 | 3,596,017 | null | null |
2,024 | 3,628,934 | null | null |
2,025 | 3,606,407 | null | null |
2,026 | 2,676,684 | null | null |
2,023 | 299,465 | null | null |
2,023 | 270,845 | null | null |
2,023 | 299,355 | null | null |
2,023 | 278,630 | null | null |
2,023 | 299,545 | null | null |
2,023 | 303,322 | null | null |
2,023 | 311,597 | null | null |
2,023 | 322,361 | null | null |
2,023 | 305,509 | null | null |
2,023 | 309,117 | null | null |
2,023 | 298,228 | null | null |
2,023 | 298,043 | null | null |
2,024 | 297,006 | null | null |
2,024 | 283,144 | null | null |
2,024 | 298,013 | null | null |
2,024 | 289,491 | null | null |
2,024 | 303,181 | null | null |
2,024 | 293,142 | null | null |
2,024 | 319,093 | null | null |
2,024 | 325,686 | null | null |
2,024 | 308,305 | null | null |
2,024 | 314,018 | null | null |
2,024 | 291,819 | null | null |
2,024 | 306,036 | null | null |
2,025 | 303,685 | null | null |
2,025 | 275,165 | null | null |
2,025 | 297,563 | null | null |
2,025 | 289,429 | null | null |
2,025 | 303,809 | null | null |
2,025 | 298,225 | null | null |
2,025 | 321,548 | null | null |
2,025 | 319,273 | null | null |
2,025 | 309,818 | null | null |
US deaths, causes of death and births, 1968 to 2025
National US vital statistics from the CDC, tidied into four CSVs. Maintained at whywedie.org, which also has charts, a free JSON API (https://whywedie.org/api) and a page per leading cause of death.
Snapshot built 2026-10-31. The site refreshes the provisional months regularly, so check whywedie.org/api for the newest files.
Files
| File | What it is | Years |
|---|---|---|
us_deaths_by_cause_annual.csv |
Deaths, crude rate and age-adjusted rate per cause per year | 1968-2025 |
us_deaths_monthly.csv |
All-cause deaths per month | 2018-01 to 2026-10 |
us_births_annual.csv |
Births, crude birth rate, general fertility rate | 1960-2026 |
us_births_monthly.csv |
Births per month | 2023-01 to 2026-09 |
Columns
deaths_by_cause_annual:icd_version(8, 9 or 10),cause_code,cause,in_113_cause_list(yes for the detailed ICD-10 list, 1999 onward),year,deaths,crude_rate_per_100k,age_adjusted_rate_per_100k(2000 US standard population).- Monthly and annual birth and death files: counts as published, one row per period.
Read this before using it
- Compare within an ICD version, not across. Cause definitions changed at 1979 (ICD-9) and 1999 (ICD-10). Before 1999 the data is at chapter level only.
- Recent months and years are provisional. CDC revises them upward for a few months, so the newest month is always low. The latest year of annual data is also provisional.
- National totals only. CDC WONDER does not return state-level vital statistics through its API.
- Counts of 1 to 9 deaths are suppressed by CDC; those cells are blank.
Sources and licence
CDC WONDER (National Center for Health Statistics) mortality and natality databases, and data.cdc.gov for pre-1960 birth history. The source data is a US government work in the public domain. This compilation is released under CC0 1.0; attribution to whywedie.org is appreciated but not required.
- Downloads last month
- 66