Data / tutorials / q03-pace-three-ways
Tutorial Q-3: Pace from distance and time, checked three ways
Tutorial
Write a pace function, check it against three known cases with assert, then apply it to the instructor's 19 runs with moving and elapsed time and work out what the file's own pace column means.
Files for the tutorial Pace from distance and time, checked three ways (https://apopt.com/course/tutorials/q03-pace-three-ways/). 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 |
|---|---|---|---|
| expected/printed-output.txt | 975 B | Everything the tutorial prints, cell by cell | |
| raw/activities.csv | 3.4 KB | 19 rows | one row per run, 19 runs from 10 April to 18 May 2026, with distance, moving and elapsed time, a pace column, heart rate and cadence |
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.csv
| activity_id | date | start_local | sport | device | distance_km | moving_time_min | elapsed_time_min | pace_min_per_km | avg_hr_bpm | max_hr_bpm | avg_cadence_spm | elevation_gain_m | elevation_loss_m | avg_power_w | laps | records | records_file | load_au |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2026-04-10_1505_running | 2026-04-10 | 2026-04-10T15:05 | running | COROS PACE Pro | 11.567 | 59.95 | 85.16 | 5.18 | 146 | 182 | 168.0 | 60 | 59 | 246 | 15 | 3596 | records/2026-04-10_1505_running.csv | 38.6 |
| 2026-04-11_0809_running | 2026-04-11 | 2026-04-11T08:09 | running | COROS PACE Pro | 14.326 | 69.15 | 80.22 | 4.83 | 124 | 156 | 174.0 | 43 | 40 | 261 | 10 | 4150 | records/2026-04-11_0809_running.csv | 32.1 |
| 2026-05-04_1028_running | 2026-05-04 | 2026-05-04T10:28 | running | COROS PACE Pro | 8.606 | 40.63 | 40.63 | 4.72 | 154 | 172 | 174.0 | 125 | 127 | 271 | 6 | 2439 | records/2026-05-04_1028_running.csv | 29.1 |
| 2026-05-04_1509_running | 2026-05-04 | 2026-05-04T15:09 | running | COROS PACE Pro | 8.674 | 47.74 | 70.52 | 5.5 | 138 | 180 | 170.0 | 103 | 106 | 233 | 6 | 2864 | records/2026-05-04_1509_running.csv | 27.4 |
| 2026-05-05_0827_running | 2026-05-05 | 2026-05-05T08:27 | running | COROS PACE Pro | 8.343 | 41.85 | 111.15 | 5.02 | 141 | 174 | 174.0 | 55 | 69 | 251 | 6 | 2510 | records/2026-05-05_0827_running.csv | 25.1 |
| 2026-05-06_0831_running | 2026-05-06 | 2026-05-06T08:31 | running | COROS PACE Pro | 8.498 | 46.95 | 49.47 | 5.52 | 149 | 174 | 172.0 | 65 | 69 | 234 | 6 | 2818 | records/2026-05-06_0831_running.csv | 31.5 |
| 2026-05-06_1507_running | 2026-05-06 | 2026-05-06T15:07 | running | COROS PACE Pro | 11.068 | 61.72 | 84.57 | 5.58 | 138 | 176 | 166.0 | 84 | 89 | 227 | 7 | 3705 | records/2026-05-06_1507_running.csv | 35.5 |
| 2026-05-08_0755_running | 2026-05-08 | 2026-05-08T07:55 | running | COROS PACE Pro | 12.72 | 66.17 | 66.75 | 5.2 | 134 | 180 | 174.0 | 79 | 80 | 243 | 8 | 3971 | records/2026-05-08_0755_running.csv | 35.9 |
First 8 of 19 rows.
Where it came from
- Source: Data-Driven Athletics tutorials (IRSRI, 2027)
- Removed: nothing; inputs are synthetic, published course data, or the instructor's own
- Permission: Published with the course under CC BY 4.0
- Prepared with:
dda/tutorials/build.py
Load it
import pandas as pd
df = pd.read_csv("https://apopt.com/data/tutorials/q03-pace-three-ways/raw/activities.csv")const text = await (await fetch("https://apopt.com/data/tutorials/q03-pace-three-ways/raw/activities.csv")).text();Or download load.py / load.js.
How to cite
Tutorial Q-3: Pace from distance and time, checked three ways. IRSRI Sports Research Institute, 2026. Data-Driven Athletics data repository. https://apopt.com/data/tutorials/q03-pace-three-ways/