apopt.com

Chapter 4 · 37 pages · Part: Foundations

Athlete Data in Python

You wore a chest strap and a watch for the same interval session. The two files have gaps, a few impossible beats, and clocks that do not agree. What was your heart rate, second by second, and how do you know?

Read online PDF 963 kB Notebook + data 130 kB Markdown

Week 4 lesson · H08 Phone sensor log · H09 Dashboard 1: a season in four charts · Build B-4: A CSV file on a canvas · Data for this chapter

Learning objectives

Apps

Jump

Sections

  1. 4.1A Working Setup
  2. 4.2Tables and Time Series
  3. 4.3Cleaning
  4. 4.4Resampling and Aligning
  5. 4.5Smoothing and Differentiating
  6. 4.6Describing Data
  7. 4.7Charts That Make One Point
  8. 4.8The App Results Files
  9. 4.9Coding with an Assistant
  10. 4.10Telling the Athlete
  11. 4.11Build Step B-4: A CSV File on a Canvas
  12. 4.12Summary
  13. 4.13Exercises

Lecture slides

Two decks for this chapter, one for each class of the week. Each has a speaker script; text CC BY 4.0.

Tutorials

From a raw file to an action, with every step runnable in the browser. Case studies are also printed in Part V.

Code listings

The listings and their data are in the notebook download above.

Exercises

34 exercises; 8 are CORE. Answers to selected exercises are at the back of the book.

Concept check

Hand calculation

Python analysis

App lab

Field collection

Body science

Science of the sport

Build

Communicate

Check the AI

How to cite

Hedengren, J. (Ed.) (2027). Chapter 4: Athlete Data in Python. In Data-Driven Athletics: Measuring, Modeling and Coaching Human Performance with Video and Wearable Data (pp. 83–119). IRSRI Sports Research Institute. https://apopt.com/book/pdf/04-athlete-data-in-python.pdf

BibTeX
@incollection{hedengren2027ch4python,
  editor    = {Hedengren, John},
  title     = {Chapter 4: Athlete Data in Python},
  booktitle = {Data-Driven Athletics: Measuring, Modeling and Coaching Human Performance with Video and Wearable Data},
  chapter   = {4},
  pages     = {83--119},
  publisher = {IRSRI Sports Research Institute},
  year      = {2027},
  note      = {CC BY 4.0},
  url       = {https://apopt.com/book/pdf/04-athlete-data-in-python.pdf}
}
RIS
TY  - CHAP
ED  - Hedengren, John
TI  - Chapter 4: Athlete Data in Python
T2  - Data-Driven Athletics: Measuring, Modeling and Coaching Human Performance with Video and Wearable Data
SP  - 83
EP  - 119
PB  - IRSRI Sports Research Institute
PY  - 2027
N1  - CC BY 4.0
UR  - https://apopt.com/book/pdf/04-athlete-data-in-python.pdf
ER  -