Data / tutorials / cs04-messy-watch-export
Tutorial CS-4: A messy watch export to a clean table
Tutorial
Take 693 activity summaries in a watch's own field names and units, audit every unit with an identity, write the cleaning rules first, keep a change log, and produce a quarterly running summary a coach can trust.
Files for the tutorial A messy watch export to a clean table (https://apopt.com/course/tutorials/cs04-messy-watch-export/). raw/ holds the inputs as the device or app wrote them; clean/ holds the cleaned copies the tutorial writes; expected/ holds what a correct run prints and saves, so you can check your own run.
Files
| File | Size | Rows | What it is |
|---|---|---|---|
| clean/activities_categorized.csv | 118.4 KB | 693 rows | Cleaned copy written by the tutorial |
| clean/change_log.csv | 223 B | 7 rows | Cleaned copy written by the tutorial |
| clean/quarter_summary.csv | 647 B | 11 rows | Cleaned copy written by the tutorial |
| expected/printed-output.txt | 5.4 KB | Everything the tutorial prints, cell by cell | |
| raw/activities_clean.csv | 92.0 KB | 693 rows | the case file's own conversion of the same activities to SI units with local start times, for checking your conversion |
| raw/sessions_fit.csv | 114.5 KB | 693 rows | 693 activity summaries, 28 June 2024 to 28 November 2026, one watch; the FIT session fields with the watch's own names and units |
Every file has its own fixed address: copy a link and load it directly. preview.md shows the first rows of each table as text; datapackage.json lists columns, sizes and checksums.
Preview of raw/activities_clean.csv
| activity_id | date | start_local | sport | sub_sport | device | distance_km | moving_time_min | elapsed_time_min | pace_min_per_km | avg_speed_kmh | avg_hr_bpm | max_hr_bpm | avg_cadence_spm | step_length_m | elevation_gain_m | elevation_loss_m | avg_power_w | calories_kcal | load_au |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2024-06-28_0719_running | 2024-06-28 | 2024-06-28T07:19 | running | COROS PACE 3 | 6.663 | 39.26 | 55.12 | 5.89 | 168 | 185 | 172.0 | 0.98 | 48 | 45 | 118 | 253 | 27.2 | ||
| 2024-06-29_1855_swimming | 2024-06-29 | 2024-06-29T18:55 | swimming | COROS PACE 3 | 0.022 | 9.51 | 9.61 | 0.14 | 117 | 58 | |||||||||
| 2024-07-04_0624_running | 2024-07-04 | 2024-07-04T06:24 | running | COROS PACE 3 | 1.422 | 10.88 | 24.93 | 7.65 | 145 | 165 | 154.0 | 0.84 | 3 | 15 | 90 | 51 | 5.6 | ||
| 2024-07-04_0650_running | 2024-07-04 | 2024-07-04T06:50 | running | COROS PACE 3 | 5.003 | 21.49 | 31.28 | 4.3 | 171 | 188 | 180.0 | 1.28 | 27 | 15 | 162 | 133 | 15.4 | ||
| 2024-07-06_0739_running | 2024-07-06 | 2024-07-06T07:39 | running | COROS PACE 3 | 10.624 | 72.3 | 78.8 | 6.81 | 159 | 181 | 154.0 | 0.95 | 165 | 182 | 103 | 399 | 44.8 | ||
| 2024-07-08_0734_running | 2024-07-08 | 2024-07-08T07:34 | running | COROS PACE 3 | 1.606 | 6.26 | 6.26 | 3.9 | 186 | 202 | 188.0 | 1.36 | 8 | 9 | 178 | 81 | 5.3 | ||
| 2024-07-09_0725_hiking | 2024-07-09 | 2024-07-09T07:25 | hiking | COROS PACE 3 | 5.73 | 109.88 | 109.88 | 19.18 | 115 | 163 | 0.63 | 252 | 268 | 0 | 331 | 35.6 | |||
| 2024-07-10_0727_running | 2024-07-10 | 2024-07-10T07:27 | running | COROS PACE 3 | 8.877 | 66.21 | 66.21 | 7.46 | 147 | 166 | 158.0 | 0.84 | 58 | 58 | 94 | 498 | 35.1 |
First 8 of 693 rows.
Data dictionary
| Column | Unit | Meaning |
|---|---|---|
activity_id | text | row id (local start time and sport) |
start_time | ISO 8601 | start in UTC (the "Z") |
utc_offset_h | h | local clock minus UTC at the start |
sport / sub_sport | text | sport and sub-sport as the watch labels them |
total_timer_time | s | moving time (the timer stops on pauses) |
total_elapsed_time | s | clock time from start to stop (pauses included) |
total_distance | m | distance (wrist accelerometer on indoor runs) |
enhanced_avg_speed / enhanced_max_speed | m/s | average (over timer time) and maximum speed |
avg_running_cadence | strides/min (×2 for steps/min) | cadence of ONE foot on runs |
avg_cadence | pedal rpm (bike); strokes/min (swim); undefined elsewhere | cadence on other sports |
total_strides | count | strides of one foot |
avg_step_length | mm | distance per step |
avg_stance_time | ms | ground-contact time |
avg_vertical_oscillation | mm | vertical bounce of the torso |
avg_vertical_ratio | % | oscillation ÷ step length |
avg_power | W | running power the watch estimates |
avg_heart_rate / max_heart_rate | beats/min | heart rate (optical at the wrist) |
total_ascent | m | climb (barometer) |
total_calories | kcal | energy estimate |
Where it came from
- Source: COROS Training Hub archive of FIT activity files (session summaries only), from the course case file athletes/jh/coros-history
- Removed: every GPS position and all per-second records; the archive's activity ids and file names; device serial and account identifiers
- Permission: The athlete publishes his own data with the course
- Prepared with:
dda/tutorials/build.py
Load it
import pandas as pd
df = pd.read_csv("https://apopt.com/data/tutorials/cs04-messy-watch-export/raw/activities_clean.csv")const text = await (await fetch("https://apopt.com/data/tutorials/cs04-messy-watch-export/raw/activities_clean.csv")).text();Or download load.py / load.js.
How to cite
Tutorial CS-4: A messy watch export to a clean table. IRSRI Sports Research Institute, 2026. Data-Driven Athletics data repository. https://apopt.com/data/tutorials/cs04-messy-watch-export/