Sponsor: Colorado Board of Elections
-Task: To complete the election audit of a recent local congressional election.
- Calculate the total number of votes cast
- Get a complete list of candidates who received votes
- Calculate the total number of votes each candidate received
- Calculate the percentage of votes each candidate won
- Determine the winner of the election based on popular vote
-Data Sources: election_results.csv -Software:Python 3.6.1 , visual Studio Code, 1.38.1
The analysis of the election show that: -There were 369,711 votes cast in the election. -The candidates were: -Charles Casper Stockham -Diana DeGette -Rayman Anthony Doane -The candidate results were: -Charles Casper Stockham received 23.0% of the vote and 85,213 votes -Diana DeGette received 73.8% of the vote and 272,892 votes. -Rayman Anthony Doane received 3.1% of the vote and 11,606 votes. -The winner of the election was : -Diana DeGette who received 73.8% of the vote and 272,892 votes.
The Colorado Board of Elections would like to know the voters turnout for each county that voted in the congressional district.In view of this, the following tasks are required;
- Determine the number of vote cast from each county
- The percentage of vote each county contributed to the election
- The county which had the largest turnout
The analysis of the election show that: -There were 369,711 votes cast in the election -The names of the counties in the district were; -Jefferson -Denver -Arapahoe -The county results were: -Jefferson contributed 10.5% votes to the election with 38,855 votes -Denver contributed 82.8% votes to the election with 306,055 votes -Arapahoe contributed 6.7% votes to the election with 24,801 votes -The county with the largest turnout was: -Denver