Skip to content

Find sprint weekends #540

Closed Answered by theOehrly
Casper-Guo asked this question in Q&A
Mar 2, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

The event schedule has an 'EventFormat' column. Therefore, you can get the total count like this

import fastf1
schedule = fastf1.get_event_schedule(2024)
(schedule['EventFormat'] == 'sprint_shootout').sum()

Is that what you are looking for?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Casper-Guo
Comment options

Answer selected by Casper-Guo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants