GithubHelp home page GithubHelp logo

newelectoralcollege / database Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 170 KB

Database of real election results under The New Electoral College proposal.

Home Page: https://newelectoralcollege.com

Python 87.49% Shell 12.51%
electoral-college

database's Introduction

Source

Data Sources:

The link above for MIT is to the Harvard Dataverse website. The database is actually maintained by MIT.

Deviations

The database has been edited slightly from the actual results. This includes changes in party designations, and write-in designations. This is because both databases are extremely detailed, and some small details will screw up the calculation process.

Standard

{
    "parties": [
        {
            "name": "Party A",
            "seats": 4,
            "votes": 4100,
            "extra_votes": 60,
            "extra_seat": false
        },
        {
            "name": "Party B",
            "seats": 4,
            "votes": 4000,
            "extra_votes": 970,
            "extra_seat": true
        },
        {
            "name": "Party C",
            "seats": 2,
            "votes": 2000,
            "extra_votes": 990,
            "extra_seat": true
        }
    ],
    "stats": {
        "name": "Seat Allocation",
        "total_seats": 10,
        "total_votes": 10100,
        "gallagher_index": 0.52391
    }
}

Note on New York 2016

Because of a caveat in the proposal, the Independence Party of New York would be awarded an elector for Gary Johnson (rather than the Libertarian Party). To avoid confusion, this model shows the Libertarian Party winning that elector instead, so that it is associated with Johnson.

database's People

Contributors

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