Chest-strap (Polar H10) CSV
The APOPT Heart app, common logging apps, and the case files in athletes/*/heart/ use one five-column layout.
| column | unit | meaning |
|---|---|---|
time | nanoseconds since 1970-01-01 UTC | time of the sample |
ecg | millivolts | single-lead ECG from the strap, about 130 samples per second (one row every 7.68 ms) |
hr | beats per minute | the strap's own heart rate, filled only on rows where it reported a beat |
rr | milliseconds | the strap's R-R interval, same rows as hr |
marker | unused |
time,ecg,hr,rr,marker
1782532922000000000,0.124,,,
1782532922007680000,0.131,58,1034,
Things to know:
- Most rows have only
timeandecg; empty cells mean "no value on this row", not zero. hr= 0 means the strap lost skin contact. Treat it as missing.- A night arrives from the logger as hourly files. The case files join them into one file per night (
.csv.gz) and add a 3-minute_excerpt.csvand a one-row-per-beat_rr.csv. - To get seconds from the start:
(time - time[0]) / 1e9. - Your own analysis should find R peaks in
ecgand compare its RR intervals with the strap'srrcolumn (Chapter 5).
Load in Python:
import pandas as pd
df = pd.read_csv("https://apopt.com/data/athletes/jh/heart/2026-06-26_2141_rest_excerpt.csv")
df["t_s"] = (df["time"] - df["time"].iloc[0]) / 1e9
beats = df.dropna(subset=["rr"])Plain text: heart-csv.md