I watch F1 and I like messing with data, so this was kind of inevitable. A command-line dashboard that pulls Formula 1 race data and lets you dig into it without opening a browser.
It runs on FastF1, which does the heavy lifting of fetching actual F1 data. The menus, stats, and exports are all built on top of that.
§What it does
Race schedules, race results, podium counts, DNF analysis, driver comparisons across seasons, Grand Prix summaries. You can also export everything to CSV if you want to take it somewhere else.
The interactive menu is the easiest way in:
python f1_dashboard.py --menu
Or go straight to what you need:
# Race results with points chart
python f1_dashboard.py --results 2023 5
# Compare two drivers across seasons
python f1_dashboard.py --compare VER HAM 2021 2023
# Grand Prix summary
python f1_dashboard.py --summary 2023 22
# Podium counts for a season
python f1_dashboard.py --podiums 2023
# Export full season to CSV
python f1_dashboard.py --export-season 2023
§Getting it running
git clone https://github.com/akhi07rx/F1-Statistics-Dashboard.git
cd f1-statistics-dashboard
pip install fastf1 pandas matplotlib tabulate
It needs internet access to pull data and will create an f1_cache directory automatically to avoid hammering the API on repeat queries. First run for any session will be slower, subsequent ones are fast.
Full code on GitHub.
P.S. This started as a quick script to check race results data without opening ten browser tabs. It got a bit out of hand. There’s a lot more I want to add: lap time comparisons, sector analysis, tyre strategy breakdowns. That’s for another weekend. (ツ)