Giter Club home page Giter Club logo

modal-split-in-train-stations's Introduction

Modal split of people going through a train station in Switzerland

This python script computes the modal split of trips going through Bern railway station. It selects the trips going through Bern railway station from the data of the Mobility and Transport Microcensus (MTMC) 2015, computes the main transport mode before and after going through the train station and saves the modal split before/after as CSV files in German and in French.

The results have been published as an infographic in the magazine of the Swiss Federal Office for Spatial Development (ARE) "Forum Raumentwicklung"/"Forum du développement territorial"/"Forum sviluppo territoriale" in its edition about combined mobility on page 9 in German and on page 43 in French. It has also been published on Twitter in German and in French.

According to our definition of Bern railway station, 1444 trips are going through the railway station. These trips have been made by 706 single persons.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for reproducing the result and understanding how it has been generated.

Prerequisites

To run the code itself, you need python 3 and pandas.

For it to produce the results, you also need the raw data of the Transport and Mobility Microcensus 2015, not included on GitHub. These data are individual data and therefore not open. You can however get them by filling in this form in German, French or Italian. The cost of the data is available in the document "Mikrozensus Mobilität und Verkehr 2015: Mögliche Zusatzauswertungen"/"Microrecensement mobilité et transports 2015: Analyses supplémentaires possibles".

Run the code

Please copy the file etappen.csv that you receive from the Federal Statistical Office in the folder "data/input". Then run src/run_modal_split_in_train_stations.py.

DO NOT commit or share in any way the CSV-files etappen.csv! These are personal data.

modal-split-in-train-stations's People

Contributors

antonindanalet avatar

Watchers

 avatar

Forkers

areschweiz

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.