Spaces:
Running
Running
tracinginsights
commited on
Commit
•
f0a8720
1
Parent(s):
20821c9
Create GG_Plot.py
Browse files- pages/GG_Plot.py +25 -0
pages/GG_Plot.py
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
from repo_directory import GG_Plot
|
3 |
+
from repo_directory import button
|
4 |
+
|
5 |
+
YEAR_SELECTED = st.selectbox(
|
6 |
+
'Select year',
|
7 |
+
(2022, 2021, 2020, 2019, 2018))
|
8 |
+
|
9 |
+
RACE_SELECTED = st.selectbox(
|
10 |
+
'Select Race',
|
11 |
+
(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22))
|
12 |
+
|
13 |
+
SESSION = st.selectbox(
|
14 |
+
'Select Session',
|
15 |
+
('FP1', 'FP2', 'FP3', 'Q', 'SQ', 'R'))
|
16 |
+
|
17 |
+
|
18 |
+
|
19 |
+
laps, session, drivers = GG_Plot.get_data(YEAR_SELECTED, RACE_SELECTED, SESSION)
|
20 |
+
|
21 |
+
|
22 |
+
DRIVERS_SELECTED = st.multiselect(
|
23 |
+
'Select Drivers to compare',
|
24 |
+
drivers)
|
25 |
+
|