This is step 1 to build your own ML model! Grab...
TIKTOK

This is step 1 to build your own ML model! Grabbing and aggregating your data! #formulaone #data #machinelearning

1:04 Jun 08, 2025 47,800 2,434
@mar_antaya
226 words
This is how to pull data from the FastF1 API and this is where I pulled my data for the last project here. First we're going to install the FastF1 library with this command in your terminal and while you're at it you'll probably want to install Pandas and Matplotlib as well. Then you're going to want to import them into your file and enable data caching to speed up the data retrieving process. And then it's time to load our race data and I'm going to choose the 2024 Monaco Grand Prix. This is the year, location, and session whether it be quali, practice, or the actual race. I like to print a message to the command line that way I know that the data has loaded properly. And then from that data you can extract whatever you really want in order to create your data frame and I'm just going to do driver, lap time, and tire compound for this one. And then now you have your data set ready and you can use this to visualize, draw analysis, or even then build an ML model to actually predict, forecast, or do whatever you want with this data. I hope this was super helpful for you guys. Let me know if you have any questions and stay tuned for the Chinese Grand Prix prediction.

No AI insights yet

Save videos. Search everything.

Build your personal library of inspiration. Find any quote, hook, or idea in seconds.

Create Free Account No credit card required
Original