• Stars
    star
    181
  • Rank 212,110 (Top 5 %)
  • Language
  • License
    MIT License
  • Created almost 4 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

The GeoJSON dataset behind our nationwide precinct map of the 2020 presidential general election

Presidential precinct data for the 2020 general election

The Upshot scraped and standardized precinct-level election results from around the country, and joined this tabular data to precinct GIS data to create a nationwide election map. This map does not have full coverage for every state: data availability and caveats for each state are listed below, and statistics about data coverage are available here. We are releasing this map's data for attributed re-use under the MIT license in this repository.

The GeoJSON dataset can be downloaded at: https://int.nyt.com/newsgraphics/elections/map-data/2020/national/precincts-with-results.geojson.gz

Properties on each precinct polygon:

  • GEOID: unique identifier for the precinct, formed from the five-digit county FIPS code followed by the precinct name/ID (eg, 30003-08 or 39091-WEST MANSFIELD)
  • votes_dem: votes received by Joseph Biden
  • votes_rep: votes received by Donald Trump
  • votes_total: total votes in the precinct, including for third-party candidates and write-ins
  • votes_per_sqkm: total votes divided by the area of the precinct, rounded to one decimal place
  • pct_dem_lead: (votes_dem - votes_rep) / (votes_total), rounded to one decimal place (eg, -21.3)

Due to licensing restrictions, we are unable to include the 2016 election results that appear in our interactive map.

Please contact [email protected] if you have any questions about data quality or sourcing, beyond the caveats we describe below.

General caveats

  • Where possible, we used official precinct boundaries provided by the states or counties, but in most cases these were not available and we generated boundaries ourselves, using L2 voter-file points to guess the precinct for each census block group; this results in generally accurate precinct boundaries, but can be rough in no- or very-low-population places like business parks or uninhabited rural land.
    • Because of this, spatially joining our precinct GeoJSON to other geographic datasets will most likely yield less-than-ideal output.
  • Some of the results we gathered are slightly incomplete:
    • A few states' data are unofficial, since the certified results hadn't been released at time of collection.
    • Wherever write-ins are not reported by the data source, our vote totals are marginally off.
    • A very small portion of the tabular precinct results (roughly 0.01%) could not be joined to the precinct boundaries, and thus these results are not present in the GeoJSON.
  • A few areas, such as rural Vermont, Hawaii, Nevada, and Nebraska, contain no voters, and those polygons are excluded from the GeoJSON.

State-by-state data availability and caveats

symbol meaning
βœ… have gathered data, no significant caveats
⚠️ have gathered data, but doesn't cover entire state or has other significant caveats
❌ precinct data not usable

Note: One of the most common causes of precinct data being unusable is "countywide" tabulations. This occurs when a county reports, say, all of its absentee ballots together as a single row in its Excel download (instead of precinct-by-precinct); because we can't attribute those ballots to specific precincts, that means that all precincts in the county will be missing an indeterminite number of votes, and therefore can't be reliably mapped. In these cases, we drop the entire county from our GeoJSON.

  • AL: ❌ absentee and provisional results are reported countywide
  • AK: ❌ absentee, early, and provisional results are reported district-wide
  • AZ: βœ…
  • AR: ⚠️ we could not generate or procure precinct maps for Jefferson County or Phillips County
  • CA: βœ…
  • CO: βœ…
  • CT: ⚠️ township-level results rather than precinct-level results
  • DE: βœ…
  • DC: βœ…
  • FL: βœ…
  • GA: βœ…
  • HI: βœ…
  • ID: ⚠️ many counties report absentee votes countywide
  • IL: βœ…
  • IN: ⚠️ state publishes machine-readable precinct results for only about half of counties
  • IA: ⚠️ Scott County does not provide machine-readable precinct-level data
  • KS: βœ…
  • KY: ⚠️ only certain counties report results at the precinct level
  • LA: ❌ early and provisional results are reported countywide
  • ME: ⚠️ township-level results rather than precinct-level results
  • MD: βœ…
  • MA: βœ…
  • MI: ⚠️ data collection not yet complete
  • MN: βœ…
  • MS: βœ…
  • MO: ⚠️ almost all counties report absentee votes countywide
  • MT: βœ…
  • NE: βœ…
  • NV: βœ…
  • NH: ⚠️ township-level results rather than precinct-level results
  • NJ: ⚠️ township-level results rather than precinct-level results
  • NM: βœ…
  • NY: βœ…
  • NC: βœ…
  • ND: βœ…
  • OH: βœ…
  • OK: ⚠️ Tulsa County and Oklahoma County report absentee ballots countywide
  • OR: βœ…
  • PA: βœ…
  • RI: ⚠️ township-level results rather than precinct-level results
  • SC: βœ…
  • SD: ⚠️ three counties report absentee ballots countywide, and seven counties report all votes countywide
  • TN: ⚠️ Davidson County reports absentee ballots countywide
  • TX: βœ…
  • UT: βœ…
  • VT: ⚠️ township-level results rather than precinct-level results
  • VA: ❌ provisional and absentee votes are reported countywide
  • WA: βœ…
  • WV: βœ…
  • WI: βœ…
  • WY: βœ…

Credits

More Repositories

1

Military-Surplus-Gear

Military equipment given to law enforcement agencies
299
star
2

leo-senate-model

Code and data for The Upshot's Senate model.
R
230
star
3

4thdownbot-model

The model behind @NYT4thDownBot
Python
114
star
4

statement

A Ruby gem that extracts press releases and statements by members of Congress.
HTML
70
star
5

chipotle

The data behind the Upshot's recent article about what people actually order at Chipotle
56
star
6

Bedfellows

Command-line tool for exploring the PAC donor-recipient relationship
Python
54
star
7

2018-live-poll-results

Data from the 2018 NYT Upshot/Siena live polls
28
star
8

2004-2012-presidential-election-model

R
24
star
9

prison-admissions

U.S. state prison admissions by county
R
18
star
10

ifill

Ruby wrapper for the Compilation of Presidential Documents.
Ruby
11
star
11

nyt_weddings

List of New York Times wedding announcements used in an Upshot story on name-changing.
9
star
12

Sunday-Shows

Sunday talk show guests
7
star
13

Ferguson-Demographics

Census data of communities resembling Ferguson, Mo.
7
star
14

voting_mistakes

5
star
15

2016-upshot-siena-polls

Data from the 2016 NYT Upshot/Siena voter file polls http://www.nytimes.com/2016/09/19/upshot/introducing-the-new-york-times-upshot-siena-college-poll.html
R
5
star
16

world-cup-study

5
star
17

EshooPallone

4
star
18

upshot-siena-va-gov-poll

Data and methodology
3
star
19

senate_precinct_results

Precinct-level results from 2014 general election in selected states with Senate races
2
star
20

ericpac

Recipients of contributions by ERIC PAC in 2013-2014 cycle
2
star
21

rand_paul_online_donors

A partial listing of online donors from April 7-May 3 pulled from randpaul.com
2
star
22

senate-forecast-comparison

Daily Senate forecasts from seven different forecasters
2
star
23

state-department-press-briefings

The data behind our calendar of State department press briefings.
1
star