Code Monkey home page Code Monkey logo

election_analysis's Introduction

Election_Analysis

Module 3 - Python

Project Overview

The Colorado Board of Elections has given us the task of completing an election audit for a recent local congressional election. For this project we:

  1. Calcuated the total number of votes cast.
  2. Compiled a complete lsit of candidates who received votes.
  3. Calcuated the total number of votes each candidate recieved.
  4. Calculated the percentage of votes each candidate won.
  5. Determine the winner of the election based on popualr vote.

Resources

  • Data Source: election_results.csv
  • Software: Python 3.8.3, Visual Studio Code 1.45.1

Summary

The analysis of the election shows 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 85,213 votes (23% of votes cast).
    • Diana DeGette received 272,892 votes (73.8% of votes cast).
    • Raymon Anthony Doane received 11,606 votes (3.1% of votes cast).
  • The winner of the election was:

    • Diana DeGette who received 73.8% of votes cast (272,892 votes).

Challenge Overview

In addition to the above analysis, the challenge asks us to find:

  1. The number of votes from each county
  2. The percentage of votes from each county
  3. The county that had the highest voter turnout

Challenge Summary

The additional analysis shows that:

  • Jefferson county represented 10.5% of the votes (38,855 votes)
  • Denver county represented 82.8% of the votes (306,055 votes)
  • Arapahoe county represented 6.7% of the votes (24,801 votes)
  • The county that had the highest voter turnout was Denver

election_analysis's People

Contributors

waking-dreamer avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.