Giter VIP home page Giter VIP logo

rental-bike-analysis's Introduction

Rental Bike Analysis

This repository analyzes rental bike rides in munich from the year 2021. For more information see the heading Dataset "Rides on the MVG bike" below.

It is the accompanying repository to this blog post which discusses the findings: https://medium.com/@jonas.hahn/riding-the-data-wave-insights-into-munichs-bike-rental-trends-8330bc4e6c41

The data is prepared for analysis and the following questions are answered:

  • How long do people usually rent these bikes?
  • How far do they travel with them?
  • Do people often use them complementary to the other public transport?

Requirements

  • Python 3.7 (it was tested with this version, but probably new versions also work)

Libraries used

The following python libraries were used. (see requirements.txt)

jupyter==1.0.0
pandas==1.5.3
matplotlib==3.7.1
geopy==2.3.0
numpy==1.24.2
black==23.1.0
jupyter_black==0.3.3

File Description

  • rental-bike-analysis.ipynb : Jupyter Notebook containing the data analysis.
  • MVG_Rad_Fahrten_2021.zip : 2021 MVG rental bike data (zipped).

Getting started

(Optional) Download the dataset. The dataset is shipped with the repository, so you can skip this step.

wget https://www.mvg.de/dam/mvg/services/mobile-services/mvg-rad/fahrten-csv/MVG_Rad_Fahrten_2021.zip

Unzip the dataset.

unzip MVG_Rad_Fahrten_2021.zip

Install requirements.

pip install -r requirements.txt

Start the jupyter notebook.

jupyter

Now open in a browser: http://localhost:8888/notebooks/rental-bike-analysis.ipynb

Dataset "Rides on the MVG bike"

https://opendata.muenchen.de/dataset/fahrten-mit-dem-mvg-rad

This data record includes anonymized raw data from trips with MVG bikes. The following data can be downloaded, viewed and evaluated for each bike rental:

  • Start date and time of the loan
  • End date and time of the loan
  • Loan start coordinates
  • Coordinates rental end
  • Rental start station-based or free-floating
  • Possibly station name
  • Rental end station based or free floating
  • Possibly station name

The data is always provided for an entire year. The upload takes place with a certain time lag of about 5-6 months, so that the data is available in May or June of the following year.

License

All code written in this repo is under the Apache License Version 2.0.

The data is under the Datenlizenz Deutschland – Namensnennung – Version 2.0 https://www.govdata.de/dl-de/by-2-0 .

Datenquelle: dl-de/by-2-0: Landeshauptstadt München – opendata.muenchen.de

https://opendata.muenchen.de/pages/nutzungsbedingungen

rental-bike-analysis's People

Contributors

datenhahn avatar

Stargazers

 avatar

Watchers

Hubert Muehlhans avatar Rafael Kansy 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.