|
1 |
| -# Formula 1 Data Analysis Dashboard |
2 |
| - |
3 |
| -This project is an interactive dashboard built using Streamlit to visualize and analyze Formula 1 data. The dashboard provides insights into various aspects of Formula 1 races, including constructors' performance in qualifying, top drivers and constructors, fastest and slowest circuits, average pit stop times, and lap times visualization. |
4 |
| - |
5 |
| -## Features |
6 |
| - |
7 |
| -- **Constructors in Qualifying**: Visualize the number of front row qualifications and pole positions by team. |
8 |
| -- **Top Drivers and Constructors**: Display the top 25 drivers with the most wins and the top 20 constructors with the most wins. |
9 |
| -- **Fastest and Slowest Circuits**: Identify the fastest and slowest circuits based on average lap times. |
10 |
| -- **Average Pit Stop Time**: Analyze the average pit stop time over the years. |
11 |
| -- **Lap Times Visualization**: Explore lap times and driver positions by lap for a specific race. |
12 |
| - |
13 |
| -## Installation |
14 |
| - |
15 |
| -1. Clone the repository: |
16 |
| - ```sh |
17 |
| - git clone https://github.com/yourusername/F1_Analysis.git |
18 |
| - cd F1_Analysis |
19 |
| - ``` |
20 |
| - |
21 |
| -2. Install the required dependencies: |
22 |
| - ```sh |
23 |
| - pip install -r requirements.txt |
24 |
| - ``` |
25 |
| - |
26 |
| -3. Run the Streamlit app: |
27 |
| - ```sh |
28 |
| - streamlit run app.py |
29 |
| - ``` |
30 |
| - |
31 |
| -## Data |
32 |
| - |
33 |
| -The data used in this project is sourced from various CSV files located in the [data](http://_vscodecontentref_/0) directory. The following datasets are used: |
34 |
| - |
35 |
| -- [drivers.csv](http://_vscodecontentref_/1): Information about drivers. |
36 |
| -- [constructors.csv](http://_vscodecontentref_/2): Information about constructors. |
37 |
| -- [races.csv](http://_vscodecontentref_/3): Information about races. |
38 |
| -- [qualifying.csv](http://_vscodecontentref_/4): Qualifying results. |
39 |
| -- [lap_times.csv](http://_vscodecontentref_/5): Lap times for each race. |
40 |
| -- [pit_stops.csv](http://_vscodecontentref_/6): Pit stop data. |
41 |
| -- [circuits.csv](http://_vscodecontentref_/7): Information about circuits. |
42 |
| -- `results.csv`: Race results. |
43 |
| - |
44 |
| -## Usage |
45 |
| - |
46 |
| -1. Launch the Streamlit app by running the command mentioned in the installation section. |
47 |
| -2. Use the sidebar to navigate between different sections of the dashboard. |
48 |
| -3. Explore the visualizations and insights provided in each section. |
49 |
| - |
50 |
| -## License |
51 |
| - |
52 |
| -This project is licensed under the MIT License. See the [LICENSE](http://_vscodecontentref_/8) file for more details. |
53 |
| - |
54 |
| -## Acknowledgements |
55 |
| - |
56 |
| -- The data used in this project is sourced from [Ergast API](http://ergast.com/mrd/). |
57 |
| -- This project uses [Streamlit](https://streamlit.io/) for building the interactive dashboard. |
58 |
| -- Visualizations are created using [Plotly](https://plotly.com/). |
59 |
| - |
60 |
| -## Contact |
61 |
| - |
62 |
| -For any questions or feedback, please contact Aneesh Angane at [ [email protected]]. |
63 |
| - |
| 1 | +# ποΈ Formula 1 Data Analysis Dashboard |
| 2 | + |
| 3 | +[](https://f1analysis-apw4r9dgzqfwx8vxbpardu.streamlit.app) |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | +An interactive dashboard for analyzing Formula 1 historical data with driver/constructor performance metrics and race visualizations. |
| 8 | + |
| 9 | +## β¨ Features |
| 10 | +- Driver/constructor performance analytics |
| 11 | +- Circuit speed comparisons |
| 12 | +- Interactive race telemetry |
| 13 | +- Pit stop efficiency analysis |
| 14 | + |
| 15 | +## π οΈ Tech Stack |
| 16 | +- **Frontend**: Streamlit |
| 17 | +- **Data Processing**: Pandas, NumPy |
| 18 | +- **Visualization**: Plotly, Matplotlib, Seaborn |
| 19 | + |
| 20 | +## π Data Structure |
| 21 | +```text |
| 22 | +data/ |
| 23 | +βββ drivers.csv |
| 24 | +βββ constructors.csv |
| 25 | +βββ races.csv |
| 26 | +βββ results.csv |
| 27 | +βββ qualifying.csv |
| 28 | +βββ lap_times.csv |
| 29 | +``` |
| 30 | + |
| 31 | +## π Quick Start |
| 32 | +```bash |
| 33 | +# Clone repo |
| 34 | +git clone https://github.com/yourusername/f1-dashboard.git |
| 35 | +cd f1-dashboard |
| 36 | + |
| 37 | +# Install dependencies |
| 38 | +pip install -r requirements.txt |
| 39 | + |
| 40 | +# Launch app |
| 41 | +streamlit run app.py |
| 42 | +``` |
| 43 | + |
| 44 | +## π Example Query |
| 45 | +```python |
| 46 | +# Get top 10 winning drivers |
| 47 | +winners = results[results['position'] == 1] |
| 48 | +top_drivers = winners['driverId'].value_counts().head(10) |
| 49 | +``` |
| 50 | + |
| 51 | +## π License |
| 52 | +MIT License - See [LICENSE](LICENSE) for details. |
0 commit comments