Drivers no longer listed in finishing order in Laps #373
Replies: 4 comments 2 replies
-
I need to look into this some more, maybe tomorrow. I don't think this was ever an intentional feature. At least I don't remeber it.
|
Beta Was this translation helpful? Give feedback.
-
Sounds good, just refactored the strategy example (#372) to use |
Beta Was this translation helpful? Give feedback.
-
OK, so this is caused by a change in FastF1. But it was never intended that the laps are sorted by finishing order. Currently, some sessions will be ordered by finishing order and some won't be. |
Beta Was this translation helpful? Give feedback.
-
My personal order of preference:
|
Beta Was this translation helpful? Give feedback.
-
In the past,
session.Laps
will list the drivers by the official classification order. I'm not sure if this was ever guaranteed but I haven't encountered any violation of this ordering in my usage.This is no longer the case. Drivers are now listed in a fixed but seemingly random order.
Code sample:
Output
Relevant
Pandas series' unique function returns items in order of appearance.
Just curious if this is an intentional change or is caused by the upstream API.
Beta Was this translation helpful? Give feedback.
All reactions