Gallery
Dataset·Politics & Elections·csv

U.S. presidential state returns, 1976-2024

State-level U.S. presidential election returns by candidate, party, state, and year.

Download csv · 514 KB
Rows
4,822
Columns
15
Format
csv
Size
514 KB

Grain
Candidate-party-state-year election return row.

Teaching uses

  • Build state election maps and vote-share dashboards.
  • Aggregate candidate lines into major-party state totals.
  • Teach joins across state identifiers and election years.

Columns 15

NameTypeNullUniqueExamples
yearint640%131976, 1980, 1984
statestr0%51ALABAMA, ALASKA, ARIZONA
state_postr0%51AL, AK, AZ
state_fipsint640%511, 2, 4
state_cenint640%5163, 94, 86
state_icfloat64<0.1%5141.0, 81.0, 61.0
officestr0%1US PRESIDENT
candidatestr<0.1%423BUBAR, BENJAMIN ""BEN"", CARTER, JIMMY, FORD, GERALD
party_detailedstr0.1%217PROHIBITION, DEMOCRAT, REPUBLICAN
writeinobject<0.1%2False, True
candidatevotesint640%4,0816669, 659170, 504070
totalvotesint640%6631182850, 123574, 742719
versionstr0%220210113, 2025-11-20
notesfloat641.0%0
party_simplifiedstr<0.1%4OTHER, DEMOCRAT, REPUBLICAN

Source context: state/codebook-us-president-1976-2020.mdstate/dashboard_assets/README.md · documented in local codebook