Simple analytics of my hiking data.
The hiking_analytics.ipynb
Jupyter Notebook analyzes a CSV file of hiking activity data. The file may be manually created or downloaded from Strava, and should be stored in the same folder as the Notebook.
A manually created file needs to be a CSV file with the following columns:
date
: date of hike, e.g. as YYYY-MM-DDaverage_moving_pace
: minutes per mile, i.e. as HH:MM:SStotal_duration
: total duration of hike, including breaks, i.e. as HH:MM:SSdistance_mi
: total distance of hike in mileselevation_gain_ft
: total elevation gain in feetmax_elevation_ft
: maximum elevation in feet
To get a CSV of activity data from Strava, follow the Bulk Export instructions at this link to download your full data archive. Once you have downloaded your data archive, the required file is 'activities.csv' in the data archive folder.
After you have created or downloaded your hiking data file, set the appropriate filesource
and filename
parameters in the first cell of the notebook, and run the script.
The notebook produces five plots, with examples shown below:
- Total annual miles hiked and elevation gain
- Cumulative annual miles hiked and elevation gain
- Annual average/median hiking statistics (distance, elevation gain, max elevation, steepness, fitness, speed)
- Annual distributions of hiking statistics
- Statistics for individual hikes (steepness, fitness, speed), colored by year