Git Product home page Git Product logo

senategrapher's Introduction

SenateGrapher

About

This program allows for the visualisation of the distribution of preferences in Australian Senate elections. Not all planned features have been implemented, but the core functionality is all there.

process_data.py

process_data.py is responsible for turning the AEC input data and outputting JSON which can be fetched by the webpage. The following additional input files should be downloaded from the AEC tally room website and put in the data_in folder for process_data.py to work:

  • SenateCandidatesDownload-{election}.csv, which contains the candidate information (for mapping candidate name to candidate party).
  • SenateDopDownload-{election}, which should be another folder which is unzipped from the original AEC download. Each folder then contains files of the form SenateStateDOPDownload-{election}-{state}.csv, which is where the actual distribution of preferences data comes from.

The ELECTION_ID_TO_NAME dict at the top of process_data.py has to be manually modified to include the election event ID's which should be processed. The output data is placed in data_out.

Credits

senategrapher's People

Contributors

gusevans avatar xaviercooney avatar

Stargazers

 avatar

Watchers

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