Skip to content

Based on the election commission's request, I confirmed the voter turnout for each county that voted in this congressional district. Used for loops and conditional statements to calculate the voter turnout for each county as well as the percentage of votes each county contributed to the election.

Notifications You must be signed in to change notification settings

Kalkidanalemaye/Election_Analysis-1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Election_Analysis-1

Project Overview

A Colarado Board of Elections employee, Tom, has given me 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 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.7.6, Visual Studio Code, 1.43

Dataset Summary

The analysis of the election show 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.0% of vote and 85,213 number of votes.
    • Diana DeGette received 73.8% of vote and 272,892 number of votes.
    • Raymon Anthony Doane received 3.1% of vote and 11, 606 number of votes.
  • The winner of the election was:
  • Diana DeGette, who received 73.8% of the vote and 272,892 number of votes.

Challenge Assignment Background

Because not everyone has voted in this election, I will confirm the voter turnout for each county. In this project, I determined the number of votes that were cast from each county and the percentage of votes each county contributed to the election.

Challenge Assignment Overview

First, I used for loops and conditional statements to calculate the voter turnout for each county as well as the percentage of votes each county contributed to the election. Then, determined which county had the largest turnout. The results were saved to election_results.txt with the previous election analysis results.

  1. Calculate the total number of voters.
  2. Add the list of counties.
  3. Calculate the total number of voters from each county.
  4. Calculate the percentage of voters in each county.
  5. Determine the largest county turnout.

Challenge Assignment Finding

The analysis of the election shows that:

  • There were 369,711 votes(voters) cast in the election.
  • The counties were:
    • Arapahoe
    • Denver
    • Jefferson
  • The turnout of each county were:
- Arapahoe got 24,801 voters which is 6.7% voter turnout rate.
- Denver got 306,055 voters which is 82.8% voter turnout rate.
- Jefferson got 38,855 voters which is 10.5% voter turnout rate.
  • The county with the largest voter turnout is Denver.

About

Based on the election commission's request, I confirmed the voter turnout for each county that voted in this congressional district. Used for loops and conditional statements to calculate the voter turnout for each county as well as the percentage of votes each county contributed to the election.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages