Giter Site home page Giter Site logo

correlomat's Introduction

[DEPRECATED] correl-o-mat

Deprecation notice

This script no longer works, because the offline version (zip file) of Wahl-O-Mat is no longer available and the https://www.bpb.de has no interest in providing the data in machine readable format. However some smart and hard-working people have found workarounds by parsing the data out from the PDFs provided by the bpb:

Info

correl-o-mat is a python script for analyzing correlations from the data of the wahl-o-mat.

It generates a table with all the answers of all parties for every question in the wahl-o-mat. In addition, it generates a correlation matrix counting all questions where the parties agree with each other. This shows, which parties share their opinions and therefor are similar to each other. Thereby the correlation matrix also suggests which parties could form coalitions and which parties better do not because they are too different from each other.

System Requirements

Tested on Mac OS X 10.8.4 with Python 2.7.3.. However the script should also run on Linux or Windows.

Usage

  1. Download the wahlomat.zip file for an election, e.g. for Bayern 2013 or from the wahl-o-mat archive.

  2. Run the correlomat script giving the path to wahlomat.zip file as the only argument

python correlomat.py wahlomat.zip

This will generate two files in the working directory of the script. The file table.csv holds the answers of all parties to all questions. The file correlation.csv contains the correlation matrix of all parties, showing the number of the questions each party agrees on with the other parties.

Enjoy!

correlomat's People

Contributors

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