Book data, Chapter 4: Athlete Data in Python
Book example
The 21 example files that Chapter 4 of Data-Driven Athletics reads, under the same names the listings use.
Files for Athlete Data in Python (Chapter 4). A listing that opens data/<name> in the book can open https://apopt.com/data/book/ch04-python/<name> instead, or you can download the file and keep the data/ folder next to your notebook.
Some files are synthetic or simulated so the arithmetic in the text is easy to follow; the chapter says which. Real recordings for the same topics are in the athlete case files (athletes/).
Files
| File | Size | Rows | What it is |
|---|---|---|---|
| session_hr.csv | 3.3 KB | 285 rows | Example data used in the chapter; used by code/checks/exercise_numbers_v11.py, code/l20_join.py, code/make_data_v11.py |
| sessions.csv | 153 B | 6 rows | Example data used in the chapter; used by code/checks/exercise_numbers_v11.py, code/l20_join.py, code/make_data_v11.py, chapter text |
| squad_wide.csv | 174 B | 9 rows | Example data used in the chapter; used by code/l02_tidy.py, code/l06_units.py, code/make_data.py |
| strap_hr.csv | 36.6 KB | 1,500 rows | Example data used in the chapter; used by code/b4/test-parse.mjs, code/checks/exercise_numbers_v11.py, code/figures.py, code/figures_v11.py, code/l01_setup.py, code/l03_clocks.py, code/l07_align.py, code/l11_agree.py, code/l21_distribution.py, code/make_data.py |
| walk_accel.csv | 146.2 KB | 2,980 rows | Example data used in the chapter; used by code/checks/exercise_numbers.py, code/checks/exercise_numbers_v11.py, code/figures.py, code/l04_rate.py, code/l05_clean.py, code/l12_cadence.py, code/l19_changelog.py, code/make_data.py, chapter text |
| watch_activity.csv | 33.0 KB | 855 rows | Example data used in the chapter; used by code/checks/exercise_numbers_v11.py, code/l18_dictionary.py, code/make_data_v11.py |
| watch_hr.csv | 23.1 KB | 986 rows | Example data used in the chapter; used by code/checks/exercise_numbers_v11.py, code/figures.py, code/figures_v11.py, code/l03_clocks.py, code/l07_align.py, code/l11_agree.py, code/make_data.py |
| results/ | 122.5 KB | 14 files |
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 session_hr.csv
| session_id | t_s | hr_bpm |
|---|---|---|
| S01 | 0 | 121 |
| S01 | 10 | 135 |
| S01 | 20 | 134 |
| S01 | 30 | 132 |
| S01 | 40 | 128 |
| S01 | 50 | 128 |
| S01 | 60 | 131 |
| S01 | 70 | 128 |
First 8 of 285 rows.
Where it came from
- Source: Data-Driven Athletics (IRSRI, 2027), book source folder ch04-python
- Removed: nothing; the book's example files are already de-identified
- Permission: Published with the book under CC BY 4.0
- Prepared with:
data-repo/prepare_book.py
Load it
import pandas as pd
df = pd.read_csv("https://apopt.com/data/book/ch04-python/session_hr.csv")const text = await (await fetch("https://apopt.com/data/book/ch04-python/session_hr.csv")).text();Or download load.py / load.js.
How to cite
Book data, Chapter 4: Athlete Data in Python. IRSRI Sports Research Institute, 2026. Data-Driven Athletics data repository. https://apopt.com/data/book/ch04-python/