Skip to content
final project in data science bootcamp
Jupyter Notebook Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
all_trips.csv
daily_forecast.png
floating vs stations.gif
floating vs stations2.gif
floating_heatmap.png
forecast.gif
houly_forecast.png
nextbike_Bikes_convert_json_to_df.ipynb
nextbike_Bikes_convert_json_to_df.py
nextbike_data_cleaning.ipynb
nextbike_data_cleaning.py
nextbike_data_exploration.ipynb
nextbike_data_exploration.py
nextbike_folium_gifmap.ipynb
nextbike_folium_gifmap.py
nextbike_folium_maps.ipynb
nextbike_folium_maps.py
nextbike_get_data_API.ipynb
nextbike_get_data_API.py
nextbike_predictions.ipynb
nextbike_predictions.py
nextbike_sample.gif
nextbike_weatherdata.ipynb
nextbike_weatherdata.py
requirements.txt
station_heatmap.png

README.md

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
You can’t perform that action at this time.