Skip to main content
This section provides a comprehensive collection of examples demonstrating the capabilities of FastF1 for Formula 1 data analysis. Each example uses real-world data and provides complete, runnable code.

Example Categories

Telemetry Analysis

Analyze driver telemetry data including speed traces, GPS positions, and gear shifts.

Speed Traces

Compare driver speed traces across laps

Track Maps

Visualize speed and gear shifts on circuit maps

Corner Analysis

Annotate speed traces with corner information

Gear Shifts

Track gear usage throughout the circuit

Lap Time Comparison

Compare lap times between drivers and analyze performance distributions.

Driver Lap Times

Scatter plot of lap times with tire compound colors

Lap Time Distribution

Violin plots showing performance distributions

Race Strategy

Analyze race strategies including tire choices, pit stops, and position changes.

Tire Strategy

Visualize tire compound strategies for all drivers

Position Changes

Track position changes throughout the race

Qualifying Results

Visualize qualifying performance gaps

Team Pace Ranking

Compare team race pace distributions

Championship Standings

Track championship progress and analyze season-long performance.

Results Tracker

Heatmap of points scored at each race

Season Summary

Interactive dashboard of season performance

Championship Calculator

Calculate who can still win the championship

Getting Started

All examples require FastF1 to be installed:
pip install fastf1
Some examples also require additional visualization libraries:
pip install matplotlib seaborn plotly

Running the Examples

Each example is self-contained and can be run directly. Simply copy the code and execute it in your Python environment. The examples will:
  1. Load the required session data
  2. Process and prepare the data
  3. Create visualizations
  4. Display the results
The first time you run an example, FastF1 will download and cache the required data. Subsequent runs will be faster.

Source Code

All examples are available in the FastF1 repository and are regularly updated to use the latest API features.

Build docs developers (and LLMs) love