# Tutorial Q-21: Sweat rate from two weighings

Turn a log of weighings before and after runs into sweat rates and body-mass losses, catch a value typed in the wrong unit, and relate sweat rate to air temperature.

Address: https://apopt.com/data/tutorials/q21-sweat-rate/  
License: CC BY 4.0  
Prepared: 2026-12-03

## Description

Files for the tutorial *Sweat rate from two weighings* (https://apopt.com/course/tutorials/q21-sweat-rate/). `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/q21-sweat-rate/expected/printed-output.txt) | 2.2 KB |  | Everything the tutorial prints, cell by cell |
| [raw/weighings_synthetic.csv](https://apopt.com/data/tutorials/q21-sweat-rate/raw/weighings_synthetic.csv) | 448 B | 10 rows | SYNTHETIC weighing log, ten runs by an invented 70 kg runner (date, minutes, air_temp_c, mass_before_kg, mass_after_kg, drink_l, urine_l); one after-weight is typed in pounds |

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 7: Glucose, Lactate and Emerging Sensors](https://apopt.com/book/ch07-emerging/)
- Course: [Week 7 lesson](https://apopt.com/course/week/7/)

## How to cite

Tutorial Q-21: Sweat rate from two weighings. IRSRI Sports Research Institute, 2026. Data-Driven Athletics data repository. https://apopt.com/data/tutorials/q21-sweat-rate/

## Load it

```python
import pandas as pd
df = pd.read_csv("https://apopt.com/data/tutorials/q21-sweat-rate/raw/weighings_synthetic.csv")
```
