
Loading the Session
Analyze speed trap data from the 2023 Italian Grand Prix qualifying session. Top speeds are typically highest at Monza because of the low-downforce setup.Finding the Fastest Speed Trap
The laps table has four speed columns in km/h:SpeedI1, SpeedI2, SpeedST, and SpeedFL. For each lap, find the trap with the highest reading. The trap that wins most often is the fastest trap. For this session, it is SpeedST.
Calculating Maximum Speeds by Team
Group the data by team and find the maximum speed recorded for each.Adding Team Colors
Use the plotting module to get official team colors for the visualization.Creating the Visualization
Build a horizontal bar chart showing the speed differences between teams.Interpreting the Results
When analyzing top speed data, consider:- Power unit performance: Teams with the same engine supplier often show similar top speeds
- Aerodynamic efficiency: Lower drag setups achieve higher speeds but may sacrifice cornering performance
- Track-specific setups: Monza and Spa typically show the highest speeds due to low-downforce configurations
- DRS effect: Ensure the comparison is like-for-like (DRS enabled or disabled)
Parameters
The native chart accepts ateams filter. Restrict the comparison with teams, or force a specific trap with speed_trap:
speed_trap=None selects the trap with the logic from the sections above. Omit teams (the default) to include every team.
Unlike the manual code, the native chart first drops deleted laps and pit in and out laps. As a result, the team maxima can differ. In this session, Haas F1 Team reaches 351 km/h on all laps, but 341 km/h after the filter.
Complete Example
The whole workflow above is wrapped in a single native function:Next Steps
- Compare speed trap data across different tracks to see setup variations
- Analyze the relationship between top speed and lap time
- Explore telemetry comparison for detailed speed profiles