tracinginsights commited on
Commit
8346567
1 Parent(s): 29b804b

Update pages/Fastest_Lap.py

Browse files
Files changed (1) hide show
  1. pages/Fastest_Lap.py +14 -0
pages/Fastest_Lap.py CHANGED
@@ -2,6 +2,20 @@ import streamlit as st
2
  from repo_directory import Fastest_Lap
3
  from repo_directory import button
4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  df, f1session = Fastest_Lap.get_fastest_laps(YEAR_SELECTED,RACE_SELECTED, SESSION )
6
 
7
  DRIVER = df.iloc[0, 0]
 
2
  from repo_directory import Fastest_Lap
3
  from repo_directory import button
4
 
5
+
6
+ YEAR_SELECTED = st.selectbox(
7
+ 'Select Year',
8
+ (2022, 2021, 2020, 2019, 2018))
9
+
10
+ RACE_SELECTED = st.selectbox(
11
+ 'Select Race',
12
+ (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22))
13
+
14
+ SESSION = st.selectbox(
15
+ 'Select Session',
16
+ ('FP1', 'FP2', 'FP3', 'Q', 'SQ', 'R'))
17
+
18
+
19
  df, f1session = Fastest_Lap.get_fastest_laps(YEAR_SELECTED,RACE_SELECTED, SESSION )
20
 
21
  DRIVER = df.iloc[0, 0]