snapshot_kind stringclasses 1
value | recorded_utc stringclasses 1
value | artifact dict | source_lock dict | build_report_sha256 stringclasses 1
value | release_audit_sha256 stringclasses 1
value | consumer_report_sha256 stringclasses 1
value | public_host_verified bool 1
class | publication_status stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|
Immutable historical local evidence before public publication; paths/status inside describe that snapshot. | 2026-10-18T15:32:50.836201+00:00 | {
"database_sha256": "2bc31f9e9fdd973ddf728cc4e1e0811a7bacf9450dd80c7671c36fa6a1fc7442",
"database_bytes": 26488832,
"rows": 190798,
"data_tables": 4,
"dictionary_columns": 413,
"table_counts": {
"accident": 36297,
"vehicle": 56011,
"person": 88326,
"code_labels": 10164
},
"build_input_s... | {
"release": "2024 Annual Report File (first annual release, 2026-04-01); national 50 states and DC, not final file",
"archive": {
"url": "https://static.nhtsa.gov/nhtsa/downloads/FARS/2024/National/FARS2024NationalCSV.zip",
"bytes": 32672161,
"sha256": "5112727a8c0dc91ffee27ca05bddb073934f2d192ce4fae99... | af6cb820c8b6bd30993425356fe8b9e0a7ab0138efb794633e8f0fa6fb06a475 | 2d2f2788c8396a7dc40bd51a182ab71523b6198e8a9b6abb6795a8255ec5c576 | 723dd2af682710fb7a6d7373276cca983f7cfb96c3809be983a53c93f5e74622 | false | Local; destination approval pending |
FARS 2024 National Annual Report File
A pinned DuckDB edition of NHTSA's Fatality Analysis Reporting System, 2024 national Annual Report File: 190,798 rows across 4 tables (413 columns), three convenience views, metadata and a dictionary tied to manual pages. The three source tables hold 36,297 fatal crashes, 56,011 vehicles in transport and 88,326 people; the accident and person tables reconcile to 39,254 fatalities.
This is the first 2024 ARF, released April 1, 2026, not the later final file. Coverage is the 50 states and the District of Columbia; Puerto Rico is a separate archive and is not included.
Built with fars-database. Published to Hugging Face on 2026-10-18. The dataset is included in the public datapond catalog as fars. Use normal package discovery and connections, or the immutable direct URL below.
Quick start · Tables · Views · Examples · Caveats · Source · License · Changelog
Quick Start
Choose one route: the datapond package finds the database by catalog ID; the direct Python, R and SQL examples use a fixed artifact URL. These are alternatives, not steps that must all be run. The SQL block requires a DuckDB SQL client.
DuckDB CLI
SET memory_limit = '128MiB';
SET threads = 1;
SET max_temp_directory_size = '0B';
INSTALL httpfs;
LOAD httpfs;
ATTACH 'https://huggingface.co/datasets/Nason/fars-database/resolve/adb6da02a314c39d8b6caf776529bf4a373075da/fars.duckdb' AS fars (READ_ONLY);
-- Fatal crashes and fatalities by state; the crashes view never multiplies rows
SELECT state, statename, count(*) AS fatal_crashes,
sum(fatals) AS fatalities, sum(nonoccupant_fatalities) AS nonoccupant_fatalities
FROM fars.crashes
GROUP BY state, statename
ORDER BY fatalities DESC, state LIMIT 15;
The database file is 25.3 MiB. DuckDB fetches byte ranges as needed; transfer volume depends on the query. File size is disk storage, not a RAM estimate. Remote queries still run on your machine and can transfer much of the file. A filter or LIMIT after a join or aggregate does not guarantee a small scan. The 128 MiB setting limits DuckDB's buffer pool, not the whole Python/R process; with spill disabled, a larger query can fail at that limit. Download only if you have room for the file, temporary download bytes and any existing copy.
The examples use this immutable artifact URL:
https://huggingface.co/datasets/Nason/fars-database/resolve/adb6da02a314c39d8b6caf776529bf4a373075da/fars.duckdb
Python (duckdb)
Install the Python dependency once in the environment that runs your query: python -m pip install duckdb.
import duckdb
con = duckdb.connect(config={"memory_limit": "128MiB", "threads": "1", "max_temp_directory_size": "0B"})
con.sql("INSTALL httpfs; LOAD httpfs;")
con.sql("ATTACH 'https://huggingface.co/datasets/Nason/fars-database/resolve/adb6da02a314c39d8b6caf776529bf4a373075da/fars.duckdb' AS fars (READ_ONLY)")
con.sql("SELECT * FROM fars._metadata").show()
con.sql("SELECT count(*) AS fatal_crashes, sum(fatals) AS fatalities FROM fars.crashes").show()
con.close()
R with DBI and duckdb
Install the R dependencies once: install.packages(c("DBI", "duckdb")).
library(DBI)
con <- dbConnect(duckdb::duckdb(config = list(memory_limit = "128MiB", threads = "1", max_temp_directory_size = "0B")))
dbExecute(con, "INSTALL httpfs")
dbExecute(con, "LOAD httpfs")
dbExecute(con, "ATTACH 'https://huggingface.co/datasets/Nason/fars-database/resolve/adb6da02a314c39d8b6caf776529bf4a373075da/fars.duckdb' AS fars (READ_ONLY)")
dbGetQuery(con, "SELECT month, monthname, count(*) AS fatal_crashes, sum(fatals) AS fatalities
FROM fars.crashes GROUP BY month, monthname ORDER BY month")
dbDisconnect(con, shutdown = TRUE)
In the tested R DuckDB 1.5.5 configuration, BIGINT and DECIMAL results are exposed as doubles. Counts here are exact; coordinates and measured_bac_g_dl may be approximate in R although the stored DECIMAL values are exact.
datapond package
Install or upgrade the Python client with python -m pip install --upgrade datapond, or install the released R client from CRAN with install.packages("datapond"). Remote examples are tested with Python datapond 0.1.5 (DuckDB 1.5.4) and CRAN R datapond 0.1.0 (DuckDB 1.5.5); older DuckDB reader versions are not verified here. R 0.1.1 is a separate development version, not the CRAN release.
The examples below use the public default catalog. For limits set before attachment, use the direct DuckDB examples above; package examples here set limits immediately after connecting:
import datapond
print(datapond.list())
datapond.describe('fars', table='person')
con = datapond.connect('fars')
con.execute("SET memory_limit='128MiB'; SET threads=1; SET max_temp_directory_size='0B'")
con.sql('SELECT count(*) AS fatal_crashes, sum(fatals) AS fatalities FROM crashes').show()
con.close()
library(datapond)
dp_list()
con <- dp_connect('fars')
DBI::dbExecute(con, "SET memory_limit='128MiB'; SET threads=1; SET max_temp_directory_size='0B'")
dp_describe(con, table = 'person')
DBI::dbGetQuery(con, "SELECT count(*) AS fatal_crashes, sum(fatals) AS fatalities FROM crashes")
dp_disconnect(con)
For repeated scans, download once and connect locally:
import datapond
datapond.download('fars')
con = datapond.connect('fars', local=True)
con.sql('SELECT count(*) AS fatal_crashes, sum(fatals) AS fatalities FROM crashes').show()
con.close()
library(datapond)
dp_download('fars')
con <- dp_connect('fars', local = TRUE)
DBI::dbGetQuery(con, "SELECT count(*) AS fatal_crashes, sum(fatals) AS fatalities FROM crashes")
dp_disconnect(con)
Verify the recorded artifact SHA-256 after downloading. In Python datapond 0.1.5 as well as 0.1.1, the optional huggingface_hub download path follows the repository default branch rather than the pinned URL. For an exact-version copy, download the immutable URL shown above and verify its checksum; see consumer verification for the tested configuration.
Default-catalog discovery and representative remote queries were verified after the registry merge. Earlier full-download checks used an isolated candidate registry. See consumer verification for exact client versions, paths, resource limits and download behavior. The direct URL examples above work independently of the catalog. The SQL examples below use the fars catalog alias from the direct-URL quick start.
Tables
Choose the unit before querying: the crashes view over accident has one row per fatal crash; vehicle has one row per vehicle in transport; and the people view over person has one row per recorded person. A crash can have several vehicles and people; use crashes for crash totals.
| Table | Description | Rows | Columns |
|---|---|---|---|
person |
One record per involved person, including nonoccupants and occupants of vehicles not in transport | 88,326 | 126 |
vehicle |
One record per motor vehicle in transport; parked/working vehicles are in the omitted Parkwork file | 56,011 | 201 |
accident |
One record per fatal crash in the 2024 national Annual Report File | 36,297 | 80 |
code_labels |
Distinct observed code/label tuples for 30 selected fields; county/city scoped by state; four city codes have multiple source labels | 10,164 | 6 |
Keys: accident (state, st_case); vehicle (state, st_case, veh_no); person (state, st_case, veh_no, per_no); all within this year. Every original column and paired NAME label is kept with lowercase names; codes are not recoded. Character fields such as dr_zip, VIN characters and tway_id stay strings; integer codes are BIGINT; coordinates are DECIMAL(18,12). _metadata and _columns carry provenance, definitions and manual page links.
Pre-built Views
| View | What it does |
|---|---|
crashes |
All accident columns plus per-crash counts aggregated before joining: vehicle_records, in_transport_vehicle_fatalities, person_records, person_fatalities, in_transport_people, parked_working_vehicle_people, nonoccupant_people, nonoccupant_fatalities, parked_working_vehicle_fatalities, and latitude_degrees/longitude_degrees with the unavailable codes (77.7777, 88.8888, 99.9999; 777.7777, 888.8888, 999.9999) set to NULL. Still 36,297 rows |
people |
All person columns plus age_years (0 to 120; 998/999 NULL), measured_bac_g_dl (alc_res 0 to 939 times 0.001), bac_top_coded_at_094_or_more (true for alc_res=940) and fatal_injury_recorded (true for 4; false for 0, 1, 2, 3, 6; NULL for 5 or 9) |
unambiguous_code_labels |
code_labels restricted to keys with exactly one source label; join on all five key columns |
Views are not counted in the row and table totals above.
Example Queries
Fatal injuries by recorded person role and age group; unknown age stays its own group:
SELECT per_typ, per_typname,
CASE WHEN age_years IS NULL THEN 'Unknown/not reported'
WHEN age_years < 18 THEN '0-17'
WHEN age_years < 65 THEN '18-64' ELSE '65+' END AS age_group,
count(*) AS fatalities
FROM fars.people
WHERE inj_sev = 4
GROUP BY ALL ORDER BY per_typ, age_group;
Alcohol test-result coverage among recorded drivers (test results, not imputed impairment):
SELECT alc_status, alc_statusname, count(*) AS drivers,
count(measured_bac_g_dl) AS exact_numeric_test_results,
count(*) FILTER (WHERE bac_top_coded_at_094_or_more) AS top_coded_test_results
FROM fars.people
WHERE per_typ = 1
GROUP BY alc_status, alc_statusname ORDER BY alc_status;
Coordinate availability for mapping (170 crashes lack usable coordinates):
SELECT count(*) AS fatal_crashes,
count(*) FILTER (WHERE latitude_degrees IS NOT NULL AND longitude_degrees IS NOT NULL) AS coordinates_available,
count(*) FILTER (WHERE latitude_degrees IS NULL OR longitude_degrees IS NULL) AS coordinates_missing
FROM fars.crashes;
The full set is in examples.sql; saved results are bound to the artifact hash.
Researcher Caveats
- Fatal crashes only, no denominator. FARS records crashes on public trafficways with a death within 30 days. Counts are not risk rates; there is no population, vehicle-miles or trip denominator here. Uninjured occupants may be incompletely recorded.
- Join people carefully. An inner
persontovehiclejoin drops the 9,020 nonoccupants (veh_no=0) and the 426 occupants of parked or working vehicles (per_typ=3), whose vehicles live in the omitted Parkwork file. Transport occupants (per_typ1, 2, 9) always match avehiclerow. Joiningvehicleandpersondirectly by crash multiplies rows; usecrashes. - Missing codes are field-specific. Unknown and not-applicable values stay as source codes (998/999 age, 995 to 999
alc_res, coordinate codes above). Do not blanket-convert 9, 99, 999 or 0 to NULL. Only the 9,020 nonoccupant rows have numeric vehicle attributes as NULL; blank text stays empty. - BAC 940 is a top code.
alc_res=940 means 0.94 g/dL or greater, not 0.940; thepeopleview keeps it separate.alc_res995 to 999 are nonmeasurement categories and never zero. Police-reporteddrinkingand measured tests are different variables, and missing tests are not random. - Imputed alcohol estimates are not here. The three multiple-imputation files (
MIACC,MIDRVACC,MIPER) are not loaded; this release cannot reproduce NHTSA's imputed impairment estimates. Per the alcohol README, such analyses compute an estimate in each of ten imputations and combine them. - Labels can conflict. Four city codes carry more than one official label (state 4 code 428; 13/2190; 36/4170; 42/3950).
unambiguous_code_labelsomits them; never joincode_labelson code alone.mak_modis the combined make/model code; rawmodelis only meaningful withmake. - Vintage and identity.
st_caseidentifies a crash within one year only; include year when pooling releases. The first ARF may be replaced by a final file with added or revised cases. - Scope of this release. Only
accident,vehicleandpersonare loaded. Parkwork, multiple-response factors, drug/race, vPIC decode and auxiliary files are omitted; their archived identities are pinned in the source lock.
Data Source and Version
National Highway Traffic Safety Administration, National Center for Statistics and Analysis, Fatality Analysis Reporting System, 2024 national Annual Report File, first release April 1, 2026, acquired October 18, 2026. Pinned source ZIP: 32,672,161 bytes, SHA-256 5112727a8c0dc91ffee27ca05bddb073934f2d192ce4fae997da767dccdbe04f. Definitions reference the Analytical User's Manual (DOT HS 813 794, SHA-256 210bc33d…04cc574). No automatic refresh is promised.
Artifact: fars.duckdb, 26,488,832 bytes, SHA-256 2bc31f9e9fdd973ddf728cc4e1e0811a7bacf9450dd80c7671c36fa6a1fc7442, dataset commit adb6da02a314c39d8b6caf776529bf4a373075da.
License and Attribution
Redistribution rests on NHTSA's own Ownership policy, which states that information on its website is public information and may be distributed or copied. This is the primary-source permission; no third-party Creative Commons compilation license is borrowed, and no NHTSA endorsement or trademark right is implied. Changes: CSV-to-DuckDB typing, lowercase names, numeric blank-to-NULL on nonoccupant rows, observed label dictionary, metadata and views; original codes and labels are retained. Cite the release vintage, acquisition date and artifact checksum.
GitHub, Dictionary and Website
Detailed researcher guide · Build and update instructions · Verified publication
- Source, build scripts, tests and evidence: github.com/ian-nason/fars-database
- Column dictionary (all 413 columns with original headers, definitions and manual PDF pages): DICTIONARY.md
- Catalog: datapond registry;
farsis included in the public catalog and on the datapond website.
Changelog
2026-10-18 — Documentation refresh
- Added Python/R quick starts, table descriptions and column counts, view guidance, navigation, and clearer researcher caveats.
- Database bytes, schema, source locks and validated query results are unchanged. Catalog integration was pending at this documentation checkpoint; it is now complete.
2026-10-18 — Initial release
- FARS 2024 ARF (first release): 190,798 rows across 4 tables (413 columns) and 3 views; 36,297 crashes, 39,254 fatalities. Artifact 26,488,832 bytes, SHA-256
2bc31f9e…fc7442, commitadb6da02. - Every typed cell verified against an independent read of the pinned source ZIP; per-crash count and fatality reconciliation; public immutable URL, HTTP range requests and the installed Python and R clients tested after upload.
- Registry entry initially opened as a draft pull request; later merged after integration review.
- Downloads last month
- 57