FEC data
In this chapter, we will use a somewhat more involved example dataset. The Federal Electoral Commission of the United States (FEC) records all donations to presidential candidates greater than $200. These records are publicly available. We will look at the donations for the campaign leading up to the 2012 general elections that resulted in Barack Obama's re-election. The data includes donations to the two presidential candidates, Obama and Romney, and also to the other contenders in the Republican primaries (there were no Democrat primaries).
In this chapter, we will take the transaction data provided by the FEC, store it in a table, and learn how to query and analyze it.
The first step is to acquire the data. If you have downloaded the code samples from the Packt website, you should already have two CSVs in the data
directory of the code samples for this chapter. If not, you can download the files using the following links:
data.scala4datascience.com/fec/ohio.csv.gz
(orohio...