Skip to content

Data from multiple sessions #144

Answered by markste-in
nat-salt asked this question in Q&A
Discussion options

You must be logged in to vote

you can do something like this:

import fastf1 as ff1
ff1.Cache.enable_cache('cache')

all_events = dict()
for year in [2020,2021,2022]:
    event = ff1.get_session(year, 'Bahrain', 'R')
    event.load()
    all_events[year] = event

print(all_events[2020].results)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nat-salt
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