Laps
DataFrame-like object for accessing lap timing data of multiple laps. Constructor:Instance of Session class (required for full functionality)
Time(timedelta64[ns]): Time when the lap was completedDriver(str): Driver three-letter abbreviationDriverNumber(str): Driver numberLapTime(timedelta64[ns]): Lap time durationLapNumber(float64): Lap numberStint(float64): Stint numberPitOutTime(timedelta64[ns]): Time when car exited pit lanePitInTime(timedelta64[ns]): Time when car entered pit laneSector1Time(timedelta64[ns]): Sector 1 timeSector2Time(timedelta64[ns]): Sector 2 timeSector3Time(timedelta64[ns]): Sector 3 timeSector1SessionTime(timedelta64[ns]): Session time at sector 1Sector2SessionTime(timedelta64[ns]): Session time at sector 2Sector3SessionTime(timedelta64[ns]): Session time at sector 3SpeedI1(float64): Speed trap at intermediate 1 (km/h)SpeedI2(float64): Speed trap at intermediate 2 (km/h)SpeedFL(float64): Speed trap at finish line (km/h)SpeedST(float64): Speed trap at speed trap (km/h)IsPersonalBest(bool): Whether this lap is the driver’s personal bestCompound(str): Tyre compound (‘SOFT’, ‘MEDIUM’, ‘HARD’, ‘INTERMEDIATE’, ‘WET’)TyreLife(float64): Laps completed on this set of tyresFreshTyre(bool): Whether tyres were new when fittedTeam(str): Team nameLapStartTime(timedelta64[ns]): Time when the lap startedLapStartDate(datetime64[ns]): Date when the lap startedTrackStatus(str): Track status flags during the lapPosition(float64): Position at the end of this lapDeleted(bool): Whether the lap time was deletedDeletedReason(str): Reason for deletionFastF1Generated(bool): Whether this lap was generated by FastF1IsAccurate(bool): Whether the lap passed accuracy validation
Filtering Methods
pick_drivers()
Return all laps of the specified driver(s).Driver abbreviation(s) or driver number(s) - can be mixed
Filtered Laps object
pick_teams()
Return all laps of the specified team(s).Team name(s)
Filtered Laps object
pick_laps()
Return all laps matching specific lap number(s).Lap number or iterable of lap numbers
Filtered Laps object
pick_fastest()
Return the lap with the fastest lap time.If False, only return laps marked as personal best. If True, ignore personal best flag and return the absolute fastest lap.
The fastest Lap object, or None if no valid lap exists
pick_quicklaps()
Return all laps faster than a threshold (default: 107% of fastest lap).Custom threshold coefficient (e.g., 1.05 for 105%). Defaults to 1.07 (107%).
Filtered Laps object
pick_compounds()
Return all laps done on specific tyre compound(s).Compound name(s): ‘SOFT’, ‘MEDIUM’, ‘HARD’, ‘INTERMEDIATE’, ‘WET’, ‘UNKNOWN’, ‘TEST_UNKNOWN’
Filtered Laps object
pick_track_status()
Return all laps set under a specific track status.The track status as a string (e.g., ‘1’ for green flag, ‘2’ for yellow flag, ‘4’ for safety car)
Matching method: ‘equals’, ‘contains’, ‘excludes’, ‘any’, ‘none’
Filtered Laps object
pick_wo_box()
Return all laps which are NOT in-laps or out-laps.Filtered Laps object
pick_box_laps()
Return in-laps, out-laps, or both.One of ‘in’, ‘out’, or ‘both’
Filtered Laps object
pick_accurate()
Return all laps which pass accuracy validation.Filtered Laps object
pick_not_deleted()
Return all laps whose lap times are NOT deleted.Filtered Laps object
Telemetry Methods
get_telemetry()
Get telemetry data for all laps in this Laps object.Optional frequency to override the default. Either ‘original’ or an integer for frequency in Hz.
Telemetry object with merged car and position data
Laps must contain data from only one driver.
get_car_data()
Get car data (Speed, RPM, Throttle, etc.) for all laps.Telemetry object with car data only
get_pos_data()
Get position data (X, Y, Z coordinates) for all laps.Telemetry object with position data only
get_weather_data()
Return weather data for each lap.DataFrame with weather data for each lap
Other Methods
split_qualifying_sessions()
Split laps into Q1, Q2, and Q3 sessions.List containing three Laps objects for Q1, Q2, and Q3. Returns None for cancelled sessions.
iterlaps()
Iterator for iterating over all laps.List of required column names. Only yields laps where all required values are non-null.
Lap
Single lap object (returned when slicing Laps to a single row). Properties: All columns from Laps are accessible as properties on a Lap object. Methods:get_telemetry()
Get telemetry data for this lap.Optional frequency override
Telemetry object for this lap
get_car_data()
Get car data for this lap.Telemetry object with car data
get_pos_data()
Get position data for this lap.Telemetry object with position data
get_weather_data()
Get weather data for this lap.Weather data for this lap
