I was tasked with performing an Election Audit of a recent local congressional election from the Colorado Board of Elections.
- Calculate the number of votes cast.
- Complile the list of candidates receiving votes.
- Calculate the total votes each candidate received.
- Calculate the percentage of votes each candidate won.
- Determine the winner of the election based on popular vote.
- Data Source: election_results.csv
- Software: Python 3.9.1, Visual Studio Code, 1.52.1
The analysis showed the following:
- There were 369,711 votes cast in the election.
- The candidates were:
- Charles Casper Stockham
- Diana DeGette
- Raymon Anthony Doane
- The candidate results were:
- Charles Casper Stockham received 23.0% of the vote and 85,213 votes.
- Diane DeGette received 73.8% of the vote and 272,892 votes.
- Raymon Anthony Doane received 3.1% of the vote and 11,606 votes.
- The winner of the election was:
- Diane DeGette, who received 73.8% of the vote and 272,892 votes.
I was further tasked with adding election data by county.
- Compile the list of counties.
- Calculate the number of votes for each county.
- Determine the county with the largest voter tunout.
- There were 369,711 votes cast in the election.
- The Counties were:
- Jefferson
- Denver
- Arapahoe
- The Number & Percentage of Votes by County:
- Jefferson had 10.5% of the votes with 38,855.
- Denver had 82.8% of the votes with 306,055.
- Arapahoe had 6.7% of the votes with 24,801.
- Denver the largest number of votes at 82,8%, 306,055 votes.
- The candidates were:
- Charles Casper Stockham
- Diana DeGette
- Raymon Anthony Doane
- The candidate results were:
- Charles Casper Stockham received 23.0% of the vote and 85,213 votes.
- Diane DeGette received 73.8% of the vote and 272,892 votes.
- Raymon Anthony Doane received 3.1% of the vote and 11,606 votes.
- The winner of the election was:
- Diane DeGette, who received 73.8% of the vote and 272,892 votes.
This program is powerful enough to process data for any election. A valuable tool to have in helping to ensure the integrity of elections. This script was created to intake CSV files and would need to be modified if processing a difference file type. It could also be modified if further information like election results by county were desired, instead of simply the overall result.