Giter Site home page Giter Site logo

euro-elections's Introduction

Build Status

European Elections 2014

The results of 2014 European Elections are due to be announced on Sunday 25th May.

This repo will contain the results by region for the UK. We're asking you to help us collect this data, and test out Cid, which will validate the data when collaborators submit it.

Some background

This repo contains two folders, one which will contain CSV files with the votes each party received by region, and another (as this is a Closed list PR election) which will contain the awarded seats and the details of the elected MEPs.

Collaborating

First, fork the repo, then clone it to your local machine either on the command line like so:

git clone [email protected]:YOUR_USERNMAE/euro-elections.git

or using Github for Mac

Then add two CSV files in the following formats:

Votes

The votes CSVs should live in the folder /votes and have the following columns:

  • Poll Date - Date the poll took place in format YYYY-MM-DD
  • Area - The name of the electoral region (see a list of regions)
  • Area Code - The ONS code for the electoral region
  • Area URL - The ONS uri for the electoral region
  • Party - The name of the party
  • Party ID - The Electoral Commision ID of the party (see a list of IDs)
  • Votes - The number of votes for that party
  • Ballots Rejected - The number of rejected ballots

The filename should have the format REGION-NAME-votes.csv

You can see an example of what the file should look like here

Seats

The seats CSVs should live in the folder /seats and have the following columns:

  • Poll Date - Date the poll took place in format YYYY-MM-DD
  • Area - The name of the electoral region (see a list of regions)
  • Area Code - The ONS code for the electoral region
  • Area URL - The ONS uri for the electoral region
  • Seat - The number of the seat won
  • Party - The name of the winning party
  • Party ID - The Electoral Commision ID of the winning party (see a list of IDs)
  • Name - The name of the winning candidate
  • Address - The address of the winning candidate
  • Postcode - The postcode of the winning candidate

The filename should have the format REGION-NAME-seats.csv

You can see an example of what the file should look like here

Once you have made your changes, push them up to your fork, and open a pull request.

Our robots will then check the format of the data, and apply a status to it. If we're happy, we'll merge the changes.

Pre validation

You can also validate the changes you've made before pushing by running:

gem install cid
cid validate

If all is well, you should see that each file is valid. If not, make the changes and try again.

euro-elections's People

Contributors

floppy avatar pezholio avatar

Watchers

 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.