/Election_Analysis

Utilizing Python and Visual Studio Code to analyze election data for the Colorado Board of elections.

Primary LanguagePython

Election_analysis

Project Overview

A Colorodao Board of Elections employee has give you the following tasks to comple the election audti of a rencet local congressional election

  1. Calculate the total number of votes cast,
  2. Get a complete lit of candidates who received votes.
  3. Calculate the total number of votes each candidate received.
  4. Calculate the percentage of votes each candidate won
  5. Determine the winner of the election based on popular vote

Resources

  • Data Source: election_results.csv -Software: Python 3.9, Visual Studio Code, 1.38.1

Summary

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:

  1. Calculate the voter turnout for each county.
  2. Calculate the percentage of votes for each county contributed to the election.
  3. Determine which county had the largest turnout.

Challenge Summary

Election Results

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%