Spaces:
Running
Running
tracinginsights
commited on
Commit
·
0938af3
1
Parent(s):
f83b26f
Create Tyre_Strategy.py
Browse files- pages/Tyre_Strategy.py +18 -0
pages/Tyre_Strategy.py
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
from repo_directory import Tyre_Strategy as ts
|
3 |
+
from repo_directory import button
|
4 |
+
|
5 |
+
|
6 |
+
YEAR_SELECTED = st.selectbox(
|
7 |
+
'Select Year',
|
8 |
+
(2022, 2021, 2020, 2019, 2018))
|
9 |
+
|
10 |
+
|
11 |
+
RACE_SELECTED = st.selectbox(
|
12 |
+
'Select Race',
|
13 |
+
(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22))
|
14 |
+
SESSION = "RACE"
|
15 |
+
|
16 |
+
driver_stints, drivers_list = ts.get_data(YEAR_SELECTED, RACE_SELECTED)
|
17 |
+
|
18 |
+
ts.plot(driver_stints,drivers_list )
|