Skip to content

som1966/Election_Analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Election_Analysis

Project Overview

A Colorado Board of Elections employee has given you the following tasks to complete the election audit of a recent local congressional election.

  1. Calculate the total number of votes cast.
  2. Get a complete list of candidates who recieved votes.
  3. Calculate the total number of votes each candidate recieved.
  4. Calculate the percentage of votes each candidate won.
  5. Determine the winner of the election based on popular vote.
  6. Calculate county votes for each county.
  7. Calculate which county had the largest turnout.

Resources

  • Data Source: election results.csv
  • Software: Python 3.6.1, Visual Studio Code, 1.38.1

Summary

The analysis of the election show that:

  • There were 369,711 votes cast in the election.
  • The candidates were:
    • Charles Casper Stockham
    • Diana Degett
    • 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:
    • Diana DeGette recieved 73.8% of the vote and 272,892 number of votes.
  • County Votes:
    • Jefferson contributed 10.5% of the votes (38,885 votes).
    • Denver contributed 82.8% of the votes (306,055 votes).
    • Arapahoe contributed 6.7% of the votes (24,801 votes). image image

Election-Audit Summary:

This script quickly identifies the each candidate's vote count, county vote counts and the winner. It would be important to identify the number of people eligible to vote to assess voter turnout. The percentages could be misleading based on the county population. Another modification could be the candidates political affiliation (republican, democrat or independent) or age group of voters.

About

Module 3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages