apopt.com

Data / tutorials / q35-three-tests

Tutorial Q-35: Three tests: normal, missing, invalid

Tutorial

Write the three input tests every app must pass, with assert, for a Python copy of the book's resting-heart app, then feed it a real-sized file in the right and the wrong units.

Files for the tutorial Three tests: normal, missing, invalid (https://apopt.com/course/tutorials/q35-three-tests/). 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.txt268 BEverything the tutorial prints, cell by cell
raw/rest-rr-synthetic.csv1.4 KB331 rowsSYNTHETIC: 331 RR intervals in milliseconds, about 5.4 minutes, with breathing-driven variation and three planted faults

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/rest-rr-synthetic.csv

rr_ms
975
1030
1010
957
951
956
1008
991

First 8 of 331 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/q35-three-tests/raw/rest-rr-synthetic.csv")
const text = await (await fetch("https://apopt.com/data/tutorials/q35-three-tests/raw/rest-rr-synthetic.csv")).text();

Or download load.py / load.js.

How to cite

Tutorial Q-35: Three tests: normal, missing, invalid. IRSRI Sports Research Institute, 2026. Data-Driven Athletics data repository. https://apopt.com/data/tutorials/q35-three-tests/