An interactive dashboard providing an overview of the US Presidency, Senate and House elections taking place on November 3rd 2020. This project was produced as part of a final dissertation project for an MSc in Computational and Data Journalism at Cardiff University.
Its aim was to provide an interactive dashboard as an overview of the US Presidency, Senate and House elections which took place on November 3rd 2020. It also brings together other US election projects created by the author for The Guardian, while completing a Google News Initative Fellowship with Guardian Visuals in the summer/autumn of 2020.
The graphics-led analysis page takes a look at key dynamics of the 2020 elections; including how Joe Biden won, the ways coronavirus affected vote counts, and what happened in Congress.
The 'Methodology' section at the bottom of the project provides information about the data sources used in this projects. They are also listed below:
- 2020 Projections for the Presidency, House and Senate: Cook Political Ratings
- Tabula - used to scrape electoral ratings from Cook Political's PDF
- 2016 Presidential election results & electoral vote counts by state: Federal Election Commission
- Current breakdowns of the House and Senate: Congress.gov
- State-level results for the Presidency, Senate & House are sourced from Decision Desk HQ.
- Historical election data is sourced from the Federal Election Commission.
- County-level 2020 election results are sourced from Fabio Votta's GitHub repo which scrapes data from the New York Times' live results page.
- County-level urban/rural definitions are determined by Census.gov's 2010 urban/rural classification.
- County-level educational attainment data comes from the 2018 American Community Survey 5-year estimates.
- Rules on when states can start counting mail-in ballots were sourced from the National Conference of State Legislatures, Ballotpedia and NPR.
- Time series data on how the vote counts progressed were sourced from the New York Times' live results page.
- Data on historical control of Congress was sourced from Senate.gov and House.gov.
- Data on diversity in Congress by gender and ethnicity was sourced from the Brookings Institute, Senate.gov and the Congressional Research Service.
This repo contains scripts for scraping Cook Political projections of the House and Senate using Python and BeautifulSoup:
A script extracting time series data on vote progressions in six battleground states can be found here