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 KBRows
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
| Name | Type | Null | Unique | Examples |
|---|---|---|---|---|
| year | int64 | 0% | 13 | 1976, 1980, 1984 |
| state | str | 0% | 51 | ALABAMA, ALASKA, ARIZONA |
| state_po | str | 0% | 51 | AL, AK, AZ |
| state_fips | int64 | 0% | 51 | 1, 2, 4 |
| state_cen | int64 | 0% | 51 | 63, 94, 86 |
| state_ic | float64 | <0.1% | 51 | 41.0, 81.0, 61.0 |
| office | str | 0% | 1 | US PRESIDENT |
| candidate | str | <0.1% | 423 | BUBAR, BENJAMIN ""BEN"", CARTER, JIMMY, FORD, GERALD |
| party_detailed | str | 0.1% | 217 | PROHIBITION, DEMOCRAT, REPUBLICAN |
| writein | object | <0.1% | 2 | False, True |
| candidatevotes | int64 | 0% | 4,081 | 6669, 659170, 504070 |
| totalvotes | int64 | 0% | 663 | 1182850, 123574, 742719 |
| version | str | 0% | 2 | 20210113, 2025-11-20 |
| notes | float64 | 1.0% | 0 | — |
| party_simplified | str | <0.1% | 4 | OTHER, DEMOCRAT, REPUBLICAN |
Source context: state/codebook-us-president-1976-2020.mdstate/dashboard_assets/README.md · documented in local codebook