GithubHelp home page GithubHelp logo

election-results's Introduction

Overview of Project

    A Board of Elections employee has given you the following tasks to audit the local election.

  1. Calculate the total votes
  2. Calculate the County Votes
  3. Calculate large County Turnout
  4. Calculate the percentage and number of over for each candidate
  5. Determine the winner of the election based on the popular vote.

Resources

  • Data Source: election_results.csv
  • Python 3.8

Results

-How many votes were cast in this congressional election?
Total Votes
Figure1

-Provide a breakdown of the number of votes and the percentage of total votes for each county in the precinct.
County Votes
Figure2

-Which county had the largest number of votes?
Largest number turnout
Figure3

-Provide a breakdown of the number of votes and the percentage of the total votes each candidate received.
Breakdown of the votes and percentage of candidates
Figure4

-Which candidate won the election, what was their vote count, and what was their percentage of the total votes?
breakdown of who won, their vote count, and percentage of total votes
Figure5

Summary

This script can be used in a similar format by giving three columns of ID, county, and candidates in different locations or years.
It can also be used to determine who lost this election, based on the number of votes within this county.

election-results's People

Contributors

davidhyongae2 avatar ddgae2 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.