My HackTheMidlands 5.0 submission :)
A little Python program that will generate some F1 qualifying and race results based on historic data from the Ergast data set.
I used pandas to generate average qualifying and race positions for each driver, and each constructor (team).
Those averages are then smashed together, weighted more towards the car than the driver - since even the best driver probably couldn't win in the worst car on the grid.
Make sure Python and pandas are installed. Run sim.py
!
config.csv
contains the data for this year's grid, if you'd like to see that. There's also a file for 2016's grid in the data
folder.
Alternatively, you could pick some teams and drivers using the IDs in the data
folder, or ask the program to generate some random combinations for you.
(youtube demo coming soon...)
Not really, it's just for fun. I definitely wouldn't use this for betting purposes, lol.