A Colorado Board of Elecitons employee has given you the following task to complete the election audit of a recent local congressional election.
- Candidate Results Objective:
- Calculate the total nummber of votes cast.
- Get a complete list of candidates who received votes.
- Calculate the percentage of votes each candidate won.
- Determine the winner of the election based on popular vote.
- County Results Objective:
- The voter turnout for each county
- The percentage of votes from each county out of the total count
- The county with the highest turnout
- Data Source: election_results.csv
- Software: Python 3.9.7. Visual Studio Code
The analysis of the election show that:
-
There were 369,711 votes cast in the election.
-
The candidates were:
- Candidate Charles Casper Stockham
- Candidate Diana DeGette
- Candidate Raymon Anthony Doane
-
The candidate results were:
- Candidate Charles Casper Stockham received 23.0% of the vote and 85,213 number of votes.
- Candidate Diana DeGette received 73.8% of the vote and 272,892 number of votes.
- Candidate Raymon Anthony Doane received 3.1% of the vote and 11,606 number of votes.
- The winner of the election was:
- Candidate Diana DeGette, who received 73.8% of the vote and 272,892 number of votes
-
The county votes result were:
- Jefferson county: 10.5% (38,855)
- Denver county: 82.8% (306,055)
- Arapahoe county: 6.7% (24,801)
-
The winner county with the most votes:
- Winner: Denver county cast the most votes at 82.8% (306,055).
This election audit will summarized the requested task by the colorado board of election to calculate key results from the votes cast at the election. This file was develop to support the county election system with increase effiency in data collection, to reduced the probability of human error, and to reduce the expense budget by allocating resources to other needed task to provide an accurated and trusted elections result. This automation script file can be modify to track the success rate of each candidate in each county as well as to calculate success of each candidate on the the different demography ranges of age.