Skip to content

hieppham8083/Election-Analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Election-Analysis With Python

Refer to PyPoll_Challenge.py.

Overview of Project

Create a text file of election results by Python to go through election_results.csv, and calculating the items below:

  1. Total Votes.
  2. County Votes.
  3. List of candidates who received votes.
  4. The total number of votes each candidate received.
  5. Percentage of votes each candidate won.
  6. The winner of the election based on popular vote.

Project Results

Refer to election_results.txt

alt text

Election Results Summary

  • The total amount of votes were 369,711.
  • The largest county turnout is Denver with 82.8%.
  • The winner of election is Diana DeGette with 73.8% (272,892) of all votes.
  • Base on election results csv file, we can calculate which candidate was the most popular within a county.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages