# Tutorial Q-11: Write a data dictionary for one file

Write a data dictionary for one of the instructor's per-second watch files, with units, allowed ranges and missing-value codes, before looking at the values, then count which rows break which rule.

Address: https://apopt.com/data/tutorials/q11-data-dictionary/  
License: CC BY 4.0  
Prepared: 2026-12-03

## Description

Files for the tutorial *Write a data dictionary for one file* (https://apopt.com/course/tutorials/q11-data-dictionary/). `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 |
|---|---|---|---|
| [clean/data_dictionary.csv](https://apopt.com/data/tutorials/q11-data-dictionary/clean/data_dictionary.csv) | 867 B | 12 rows | Cleaned copy written by the tutorial |
| [expected/printed-output.txt](https://apopt.com/data/tutorials/q11-data-dictionary/expected/printed-output.txt) | 2.9 KB |  | Everything the tutorial prints, cell by cell |
| [raw/2026-05-11_1507_running.csv](https://apopt.com/data/tutorials/q11-data-dictionary/raw/2026-05-11_1507_running.csv) | 282.5 KB | 3,746 rows | one second-by-second record of a 10.5 km run (3,746 rows, 12 columns), as converted from the watch's FIT file with GPS positions removed |

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 4: Athlete Data in Python](https://apopt.com/book/ch04-python/)
- Course: [Week 4 lesson](https://apopt.com/course/week/4/)
- Homework H08: [https://apopt.com/course/assess/h08/](https://apopt.com/course/assess/h08/)
- Homework H09: [https://apopt.com/course/assess/h09/](https://apopt.com/course/assess/h09/)

## How to cite

Tutorial Q-11: Write a data dictionary for one file. IRSRI Sports Research Institute, 2026. Data-Driven Athletics data repository. https://apopt.com/data/tutorials/q11-data-dictionary/

## Load it

```python
import pandas as pd
df = pd.read_csv("https://apopt.com/data/tutorials/q11-data-dictionary/raw/2026-05-11_1507_running.csv")
```
