apopt.com

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

FileSizeRowsWhat it is
expected/printed-output.txt975 BEverything the tutorial prints, cell by cell
raw/activities.csv3.4 KB19 rowsone 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_iddatestart_localsportdevicedistance_kmmoving_time_minelapsed_time_minpace_min_per_kmavg_hr_bpmmax_hr_bpmavg_cadence_spmelevation_gain_melevation_loss_mavg_power_wlapsrecordsrecords_fileload_au
2026-04-10_1505_running2026-04-102026-04-10T15:05runningCOROS PACE Pro11.56759.9585.165.18146182168.06059246153596records/2026-04-10_1505_running.csv38.6
2026-04-11_0809_running2026-04-112026-04-11T08:09runningCOROS PACE Pro14.32669.1580.224.83124156174.04340261104150records/2026-04-11_0809_running.csv32.1
2026-05-04_1028_running2026-05-042026-05-04T10:28runningCOROS PACE Pro8.60640.6340.634.72154172174.012512727162439records/2026-05-04_1028_running.csv29.1
2026-05-04_1509_running2026-05-042026-05-04T15:09runningCOROS PACE Pro8.67447.7470.525.5138180170.010310623362864records/2026-05-04_1509_running.csv27.4
2026-05-05_0827_running2026-05-052026-05-05T08:27runningCOROS PACE Pro8.34341.85111.155.02141174174.0556925162510records/2026-05-05_0827_running.csv25.1
2026-05-06_0831_running2026-05-062026-05-06T08:31runningCOROS PACE Pro8.49846.9549.475.52149174172.0656923462818records/2026-05-06_0831_running.csv31.5
2026-05-06_1507_running2026-05-062026-05-06T15:07runningCOROS PACE Pro11.06861.7284.575.58138176166.0848922773705records/2026-05-06_1507_running.csv35.5
2026-05-08_0755_running2026-05-082026-05-08T07:55runningCOROS PACE Pro12.7266.1766.755.2134180174.0798024383971records/2026-05-08_0755_running.csv35.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/