tracinginsights commited on
Commit
68db819
1 Parent(s): 4da469d

Update pages/Average_Race_Pace.py

Browse files
Files changed (1) hide show
  1. pages/Average_Race_Pace.py +13 -13
pages/Average_Race_Pace.py CHANGED
@@ -1,20 +1,20 @@
1
- # # Filter out Safety car/VSC laps
2
- # import streamlit as st
3
- # from repo_directory import Average_Race_Pace
4
- # from repo_directory import button
5
 
6
- # import pandas as pd
7
 
8
 
9
- # YEAR_SELECTED = st.selectbox(
10
- # 'Select Year',
11
- # (2022, 2021, 2020, 2019, 2018))
12
 
13
- # RACE_SELECTED = st.selectbox(
14
- # 'Select Race',
15
- # (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22))
16
 
17
 
18
- # _, df = Average_Race_Pace.plot(YEAR_SELECTED, RACE_SELECTED)
19
 
20
- # st.dataframe(pd.DataFrame(df)[['Driver','LapTime','Diff','Team']])
 
1
+ # Filter out Safety car/VSC laps
2
+ import streamlit as st
3
+ from repo_directory import Average_Race_Pace
4
+ from repo_directory import button
5
 
6
+ import pandas as pd
7
 
8
 
9
+ YEAR_SELECTED = st.selectbox(
10
+ 'Select Year',
11
+ (2022, 2021, 2020, 2019, 2018))
12
 
13
+ RACE_SELECTED = st.selectbox(
14
+ 'Select Race',
15
+ (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22))
16
 
17
 
18
+ _, df = Average_Race_Pace.plot(YEAR_SELECTED, RACE_SELECTED)
19
 
20
+ st.dataframe(pd.DataFrame(df)[['Driver','LapTime','Diff','Team']])