Oslandia / open-data-bikes-analysis

Project migrated to : https://gitlab.com/Oslandia/open-data-bikes-analysis
MIT License
19 stars 5 forks source link
analysis bike data-science lyon notebook open-data prediction python3

Open Data Bikes Analysis

License: MIT

Analyze bikes sharing station data from Bordeaux and Lyon Open Data (French cities).

Use the Python 3 programming language in Jupyter notebooks and the following libraries: pandas, numpy, seaborn, matplotlib, scikit-learn, xgboost.

See the requirements.txt file for the dependencies. If you use conda and the conda environment, you can just do: conda env create -f environment.yml and the source activate bikes.

Clustering

Highly inspired by the Usage Patterns Of Dublin Bikes Stations article and his great notebook.

Analyze the daily profile and plot a map with a color for each usage pattern.

Example of pattern

You can see the percentage of available bikes for 4 different daily profiles. Note the analysis only keep job days.

Bordeaux-Pattern

Maps

Bordeaux Map Clustering

Bordeaux-Map

Lyon Map Clustering

Lyon-Map

Predict (draft)

Play with some different models to predict the number of available bikes (or a kind of availability).

Prediction Map

From history data (two weeks), prediction at T+30 minutes for every station in Lyon (France).

Lyon-Prediction-Map

Data

See the lyon.tar.gz and bordeaux.tar.gz.