Skip to content

jdwrhodes/Election-Analysis

Repository files navigation

Election-Analysis

Project Overview

I was tasked with performing an Election Audit of a recent local congressional election from the Colorado Board of Elections.

  1. Calculate the number of votes cast.
  2. Complile the list of candidates receiving votes.
  3. Calculate the total 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.1, Visual Studio Code, 1.52.1

Summary

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.

Challenge Overview

Project Overview - County

I was further tasked with adding election data by county.

  1. Compile the list of counties.
  2. Calculate the number of votes for each county.
  3. Determine the county with the largest voter tunout.

Results with County Data

  • 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.

Challenge Summary

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages