A Colorodao Board of Elections employee has give you the following tasks to comple the election audti of a rencet local congressional election
- Calculate the total number of votes cast,
- Get a complete lit 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 Source: election_results.csv -Software: Python 3.9, Visual Studio Code, 1.38.1
The analysis of the elections shows that:
-
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%" of the vote and "85,213" number of votes.
- Diana DeGette received "73.8%" of the vote and "272,892" number of votes.
- 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%" of the vote and "272,892" number of votes.
##Challenge Overview
Seth, the client, was seeking additinoal information about the election race. Him and his team wanted information that was based around the counties involved in the election audit. He tasked us with providing the following:
- Calculate the voter turnout for each county.
- Calculate the percentage of votes for each county contributed to the election.
- Determine which county had the largest turnout.
Total Votes: 369,711
County Votes: Jefferson: 10.5% (38,855) Denver: 82.8% (306,055) Arapahoe: 6.7% (24,801)
Largest County Turnout Denver
Charles Casper Stockham: 23.0% (85,213) Diana DeGette: 73.8% (272,892) Raymon Anthony Doane: 3.1% (11,606)
Winner: Diana DeGette Winning Vote Count: 272,892 Winning Percentage: 73.8%