Code Monkey home page Code Monkey logo

election_analysis's Introduction

Election_Analysis

OSU Module 3 Python

Project Overview

Complete audit of a Colorado election for a recent congressional seat.

  1. Calculate total number of votes.
  2. Get a complete list of candidates who received votes.
  3. Calculate the total number of votes for each candidate and each county.
  4. Calculate the percentages for each candidate and each county.
  5. Determine the winner of the election based on the popular vote and the county with the highest voter turnout.

Resources

Summary

Total Votes: 369,711

County Votes:

  • Jefferson: 10.5% (38,855)
  • Denver: 82.8% (306,055) ๐Ÿ‘
  • Arapahoe: 6.7% (24,801)

Largest County Turnout:

Denver


Charles Casper Stockham:

23.0% (85,213)

Diana DeGette:

73.8% (272,892) ๐Ÿ‘

Raymon Anthony Doane:

3.1% (11,606)


Winner:

Diana DeGette

Winning Vote Count:

272,892

Winning Percentage:

73.8%


Challange Overview

The purpose of the election analysis audit was to process the results of the election without having to tabulate by hand. Results and summary were provided in one readable and one portable format.

Challenge Summary

This code can be used to tabulate election results for any jurisdiction. Modifications might include the types of files the election board is reading from and writing to. Modifications could be made to include a breakdown of candidate results per county. Voter turnout could be further calculated if population, voter registration, and eligible voters information were provided.

election_analysis's People

Contributors

tkirk70 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.