Skip to content
master
Switch branches/tags
Code

Analyzing nextbike in Berlin

This was my final project in the data science bootcamp at Spiced Academy Berlin (Jan-Mar). The challenge was that there is no trip data like for the famous Chicago Bike sharing service Divvy https://www.divvybikes.com/system-data. I had to pull regular snapshots (1 every minute) of the stations and the available bikes. Whenever a bike left one station and shortly after appeared in another station, I generated that trip. There is a lot of data wrangling and the fun part was to analyze and visualize on folium maps.

Analysis

Trips per hour (gif shows only few days)

Sample of few hours

Analyzed data for Berlin:

Nextbike offers stations and allows for bikes to be parked inside the flex zone (floating). The starting point of trips stations vs floating bikes. The denser map shows the floating bikes.

Heatmap of stations vs floating

Using FB Prophet to forecast daily or hourly demand

Forecasting daily or hourly demand

Prerequisites

These are the main packages that I have used:

requests==2.21.0
beautifulsoup4==4.7.1
fbprophet==0.4.post2
folium==0.8.3
imageio==2.5.0
matplotlib==3.0.3
numpy==1.16.2
pandas==0.24.2
scipy==1.2.1
seaborn==0.9.0
selenium==3.141.0

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • Hat tip to anyone whose code was used
  • my great teachers at Spiced Academy:
Kristian Rother https://github.com/krother
Paul Pawlodkowski https://github.com/pawlodkowski
Tom Gadsby

About

final project in data science bootcamp

Resources

License

Releases

No releases published

Packages

No packages published