Chapter 2 Discussion Guide — The F1 Data Pipeline

Chapter: The F1 Data Pipeline · Instructor notes

This is a chapter about trust: when should we believe a number, and how do we find out when we shouldn't? Run the discussion after students have completed exercise C1 (environment setup), so everyone has seen the data on their own machine.

Warm-up questions (10 minutes)

  1. Pérez's lap 14 in the 2023 Japanese GP lasted 2,588.523 s and was flagged GREEN. Before you read the explanation, what did you think had happened? What does it teach you about "obvious" errors?
  2. OpenF1 covers 2023 onward in fine detail; Jolpica covers 1950 onward in less detail. Name one question you could only answer with each.
  3. The public telemetry has no brake pressure, steering, g or tyre temperature. Which missing channel would you most like to have, and what would you do with it?

Analytical questions (20 minutes)

  1. The clean-lap funnel removes 8,099 race laps for flags but only 488 for the 107 % rule. What does that tell you about where most "bad" laps come from, and about the order in which cleaning rules should run?
  2. A session-best 107 % rule would drop 8,258 more laps than the stint-median rule, 64 % of them from cars finishing P11 or lower and 70 % from the first half of the race. Whose performance would a study using the session-best rule misrepresent, and in which direction?
  3. OpenF1 and Jolpica agree on 99.991 % of race laps from lap 2 but on none of lap 1 (OpenF1 a median 0.389 s longer). Is either source "wrong"? How would you decide which lap-1 time to use for a start analysis?
  4. Moving 396 race stint starts from the in-lap to the out-lap changes green-flag pit loss at Albert Park from 15.55 s to 20.91 s. Who should be told about a build decision like this, and how should a published number record it?

Debate questions (20 minutes)

  1. Motion: "This book should depend on FastF1, because it is the best-known library." FastF1's official timing source now needs an F1 TV subscription. Argue for accessibility on one side and convenience and familiarity on the other.
  2. Motion: "Bad data should be fixed in the raw files so that nobody uses it by mistake." The chapter keeps raw files untouched and fixes interpretations in the build. Which approach is more honest, and which is more practical for a team of five?
  3. Motion: "9.4 % of laps with frozen telemetry is low enough to ignore." Use the 2026 Suzuka pole lap (frozen for its last 24.7 s) to test the claim. Does the answer depend on the question being asked?

Facilitation notes

  • Normalise the mess. Many students arrive thinking real data are clean and that errors mean they did something wrong. Say early and often that every dataset in this course has holes, and that finding them is the skill.
  • Question 4 is about ordering. If groups miss it, ask what would happen to the 107 % rule if it ran before the pit-lap rule: a lap containing a 25 s pit stop would distort the stint median.
  • Question 5 links to fairness. Strong answers notice that the session-best rule quietly removes the slower teams from a pace study, so any "midfield degradation" figure would be biased. This foreshadows Chapter 21's driver-comparison problems.
  • Question 7 is professional practice. Push students towards concrete habits: a changelog, a stated build date for the snapshot, a note next to every pit-loss number saying which boundaries it uses.
  • Debate format: for question 8, assign sides; for question 10, let students choose, then ask a member of each side to name the evidence that would flip their view.

In-class data activity (15 minutes): find the hole

Goal: use an outer join to discover a data gap without being told where it is.

  1. In pairs, load the 2025 season's race laps from both sources (adapt code/04_joins_across_sources.py).
  2. Outer-join them on session, driver and lap number with indicator=True.
  3. Count the rows that appear in Jolpica only, grouped by race.
  4. One race should stand out. Identify it, find which laps are missing, and check your result against the chapter (the 2025 Miami GP: OpenF1 has no laps 2–24).
  5. Write a one-line warning that a teammate would need before using that race for a degradation fit.

Debrief question: "What would a degradation model fitted to this race have looked like if you had used an inner join and never noticed?"