Skip to content

bbneves/Election_Analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Election_Analysis

Project Overview

A Colorado Board of Elections employee has given yhe task of completing the elecions audit of a congressional election.

The goals of the audit were to:

  1. Calculate the total numer of votes cast.
  2. Get a complete list of candidates who received votes.
  3. calculate the total numeber of votes each candidate received.
  4. Calculate the percentage of votes each candidate won.
  5. Determine the winner of hte election based on popular vote.

Resources

  • Data Source: election_results.csv
  • Software: Python 3.9.7, Visual Studio Code 1.66.2

Summary

The analysis of the election show that:

  • There were 369,711 votes cast in the election.

  • The county votes were:

    • Jefferson: 10.5% (38,855)
    • Denver: 82.8% (306,055)
    • Arapahoe: 6.7% (24,801)
  • Largest County Turnout: Denver

  • 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 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.8% of the vote and 272,892 numer of votes.

Election-Audit Summary

In the necessity of utilizing this code again, there are some details to pay attention:

  • Verify and update the row locations for County and Candidate:

Screen Shot 2022-05-08 at 10 55 12 PM

  • Verify and update the resource.csv file location

Screen Shot 2022-05-08 at 10 55 49 PM

About

Using Python3 as main tool for applying Data Skills.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages