NY Times Voting Presidential 2020

Overview

The Upshot (New York Times) scraped and standardized precinct-level 2020 U.S. Presidential election results to create a nationwide election map. This data does not have full coverage for every state (full details available at https://github.com/TheUpshot/presidential-precinct-map-2020).

Attributes

county_fips

County FIPS code

string
precinct_id

Precinct name or ID; when combined with county_fips forms a unique ID for the precinct

string
votes_democrat

Votes cast for Joseph Biden

integer
votes_republican

Votes cast for Donald Trump

integer
votes_total

Votes cast in the precinct, including for third-party candidates and write-ins

integer
votes_per_sq_km

Total votes divided by the area of the precinct

number
pct_democrat_lead

(votes_democrat - votes_republican) / votes_total

number