apopt.com

Data / book / ch04-python

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

FileSizeRowsWhat it is
session_hr.csv3.3 KB285 rowsExample data used in the chapter; used by code/checks/exercise_numbers_v11.py, code/l20_join.py, code/make_data_v11.py
sessions.csv153 B6 rowsExample 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.csv174 B9 rowsExample data used in the chapter; used by code/l02_tidy.py, code/l06_units.py, code/make_data.py
strap_hr.csv36.6 KB1,500 rowsExample 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.csv146.2 KB2,980 rowsExample 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.csv33.0 KB855 rowsExample data used in the chapter; used by code/checks/exercise_numbers_v11.py, code/l18_dictionary.py, code/make_data_v11.py
watch_hr.csv23.1 KB986 rowsExample 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 KB14 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_idt_shr_bpm
S010121
S0110135
S0120134
S0130132
S0140128
S0150128
S0160131
S0170128

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/