Skip to content

oderby/elections_2016

Repository files navigation

Diving into Election Data

This repo is a scratch space I used to collect, transform and analyze recent US presidential election data. It's all a bit rough around the edges. If you want to see the finished product, you should check out my blog post on the 2016 election in Pennsylvania.

Sources

So far, I've only collected data for Pennsylvania elections in this repo. The data was collected from the following sources:

I automated the processing of the 2000-2016 election results in the process_pa_results.ipynb notebook. The 1996 results and all voter registration statistics came as tables that I just copied and renamed the headers.

In my work, I've found a few additional resources that are trying to compile this data in a central location:

  • Open Elections - long running project, going all the way down to the precinct level. Taking a depth-first approach to gathering their data - so if they have the data for the state you're interested in, they have more detail than you probably want.
  • Data for Democracy - fairly new project, but seem to be quickly getting all the data (results and registrations) at a county level.

Analysis

All analysis is contained in the plot_pa.ipynb notebook.

Further Resources

About

scratch space for election 2016 data dive

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published