Towards F1 Analysis Profile picture
Mar 2, 2023 β€’ 8 tweets β€’ 4 min read β€’ Read on X
Tomorrow the first #F1 race weekend of 2023 starts!

You'll probably see a lot of data πŸ“ˆ flying around your timeline.

Why not analyze the data yourself?! Let me show you how with #Python πŸ‘€

Start with firing up a Jupyter notebook and installing Fastf1:
Now that Fastf1 is installed, we need to load the package.

This is how you do it:
Cool, that was easy!

Now we need to configure the cache βš™οΈ

In the same folder as your Jupyter notebook, create another folder called "cache" πŸ“

We now can select that folder with the following code:
Perfect, all the 'boring' stuff is over! Let's get some actual data.

We start with specifying our session. Make sure to change the year to 2023 tomorrow πŸ˜‰

The "SESSION" can either be 'FP1', 'FP2', 'FP3', 'Q', 'SQ', and 'R'.
Last step is loading the actual data, which is very straightforward:
Perfect, now we have data!

You can for example see all the laps of the session by accessing the "laps" attribute of the session variable.

Here's a few tricks you can use to easily access data and get...

πŸ‘‰ Fastest laps
πŸ‘‰ Driver laps
πŸ‘‰ Telemetry data
If you want to go more in-depth with this data (like making visualisations), check out my Medium.

There's plenty of tutorials there with many different use cases, all based on the #Formula1 data you just extracted!
medium.com/towards-formul…
Also, if you want to see a live demo of how this works:

I hosted a ~1h webinar doing exactly all this, which you can access via this link:

buymeacoffee.com/f1analysis/e/9…

β€’ β€’ β€’

Missing some Tweet in this thread? You can try to force a refresh
γ€€

Keep Current with Towards F1 Analysis

Towards F1 Analysis Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!

:(