# Tutorial Q-3: Pace from distance and time, checked three ways

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.

Address: https://apopt.com/data/tutorials/q03-pace-three-ways/  
License: CC BY 4.0  
Prepared: 2026-12-03

## Description

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 | description |
|---|---|---|---|
| [expected/printed-output.txt](https://apopt.com/data/tutorials/q03-pace-three-ways/expected/printed-output.txt) | 975 B |  | Everything the tutorial prints, cell by cell |
| [raw/activities.csv](https://apopt.com/data/tutorials/q03-pace-three-ways/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 |

Large files are stated with their size. A `preview.md` in this folder shows the first rows of each table.

## Provenance

- Source: Data-Driven Athletics tutorials (IRSRI, 2027)
- Removed: nothing; inputs are synthetic, published course data, or the instructor's own
- Permission basis: Published with the course under CC BY 4.0
- Prepared with: dda/tutorials/build.py

## Used in

- Book: [Chapter 1: Questions Before Dashboards](https://apopt.com/book/ch01-questions/)
- Course: [Week 1 lesson](https://apopt.com/course/week/1/)
- Homework H03: [https://apopt.com/course/assess/h03/](https://apopt.com/course/assess/h03/)

## 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/

## Load it

```python
import pandas as pd
df = pd.read_csv("https://apopt.com/data/tutorials/q03-pace-three-ways/raw/activities.csv")
```
