The purpose of this project was to conduct an exploratory data analysis on my 2019 cycling data.
- Statistics
- Data Visualization
- Time Series
- Python
- Altair
- The Strava API
- Stravalib
- Pandas
- Jupyter Notebooks
I have been using Strava to house all of my cycling data since 2013. Using the Strava API, Python, Altair, and Jupyter notebooks, I extracted and analyzed my cycling data from 2019. In doing so, I answered the following questions:
- What percentage of days in 2019 did I ride?
- How many miles did I ride throughout the year?
- How many hours did I ride throughout the year?
- What were the number of rides by 30 minute durations?
- What were the number of rides by distances?
- What was my variation in wattage like?
- What was my variation in heart rate like?
- On average, how many hours did I ride per day of the week?
- Can I find any correlations between my different cycling data points?
- etc.
-
Clone this repo (for help see this tutorial).
-
Modify credentials.py with your own client ID and client Secret.
-
pip install requirements.txt
-
Run 2020-01-29-analysis.ipynb
-
Click on the link in the second cell, replace the code variable with the string you see in the URL, then execute the rest of the notebook.
-
Consult David Yang's Download Running Data From Strava to Analyze Yourself if you have any issues or contact me.
