
Loading the Session
Analyze track temperature changes during the 2023 Monaco Grand Prix race.Getting Weather Data
Weather data is automatically included in the laps DataFrame. Each lap has associated weather information like track temperature, air temperature, humidity, and more.Creating the Visualization
Plot track temperature against lap number to see how conditions evolved.Understanding the Data
Track temperature patterns show the following:- Rising temperature: Often seen in afternoon sessions as the sun heats the track surface
- Cooling trends: Can occur with cloud cover or as the sun sets
- Stable conditions: Consistent temperature suggests predictable grip levels
- Temperature spikes: May indicate changing weather or track conditions
Parameters
The native function accepts adrivers list. With no drivers, it uses the driver with the most recorded laps. This is the logic shown above. Pass a list to choose the drivers. The chart draws one line per driver, and all lines use the same color:
Complete Example
The whole workflow above is wrapped in a single native function:Adding Air Temperature
Compare track and air temperature to see the relationship between ambient conditions and track surface.Next Steps
- Explore other weather data like humidity and wind speed
- Correlate temperature changes with lap time variations
- Analyze how different compounds perform at various track temperatures