get_car_data() 2021-Yeda-Race-Verstappen-37 #519
-
I am trying to plot Verstappen's lap 37 telemetry from the 2021 Yeda Race. (Yes, it is the lap where HAM and VER collide and the suspicious brake test of VER occurs.) I am able to plot Verstappen's lap 35 telemetry, but when I change the lap to 37, I receive an error
Does it mean that the telemetry for that lap is not available? Here is the code:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Your issue is that you are using |
Beta Was this translation helpful? Give feedback.
Your issue is that you are using
.pick_fastest()
after you pick the lap number. By default,.pick_fastest()
will only return laps that are marked as personal best laps (i.e. they were faster than any previous lap and not deleted). Because lap 37 is not a personal best lap for VER, no lap is returned here. Therefore, you are then trying to get the telemetry of no lap which of course returns no data.In short, remove the additional
.pick_fastest()
call and everything will work.