Week 4 · Class 7 · Tue, Jan 26
Tables and time series, cleaning, resampling and aligning
Chapter 4, Athlete Data in Python
- Ask
- Collect (this week)
- Check (this week)
- Interpret (this week)
- Coach
- Reassess
- Due today
- H07 Does frame rate matter?
- Due next class
- H08 Phone sensor log
- Read
- Chapter 4, first half
- Slides
- Files You Can Defend (29 slides) · script
This class page is being written. The outline below follows the course template; for the full explanation read Chapter 4.
1. The question
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?
2. Start from zero
Revisit Week 3 if a term on this page is new; every term links to the glossary.
3. Concept
Tables and time series, cleaning, resampling and aligning.
4. Worked example
Case study CS-4 A messy watch export to a clean table (60 min): Take 693 activity summaries in a watch's own field names and units, audit every unit with an identity, write the cleaning rules first, keep a change log, and produce a quarterly running summary a coach can trust. Every step runs in the page, with a prediction first and the expected output as the check.
5. Try it
Quick tutorials this week: Q-10 Open a phone sensor log and plot it · Q-11 Write a data dictionary for one file · Q-12 Find and mark the missing values without deleting anything.
Two or three exercises from the chapter's CORE set, with a hint ladder. See the exercise board.
6. Check yourself
Three to five questions with explanations for every option.
Use Lab
Build Lab
Read ahead: B-4 A CSV file on a canvas. File input, parsing, plotting a time series.
AI Studio
- Before you ask: write your prediction or attempt. Then ask for a hint, not the answer.
- Prompt: "Act as a skeptical coach. Challenge my interpretation of this result for false precision and missing context. Ask me to predict before you reveal your critique."
- Verify: a known case, the units, an edge case, a baseline, and an explanation in your own words. Log what you used. How to use AI in this course