Spaces:
Running
Running
Update pages/Average_Race_Pace.py
Browse files
pages/Average_Race_Pace.py
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
import streamlit as st
|
3 |
from repo_directory.v2 import Average_Race_Pace
|
4 |
from repo_directory import button
|
5 |
-
from repo_directory import utils
|
6 |
|
7 |
import pandas as pd
|
8 |
|
@@ -15,7 +15,8 @@ RACE_SELECTED = st.selectbox(
|
|
15 |
'Select Race',
|
16 |
utils.get_events(YEAR_SELECTED))
|
17 |
|
|
|
18 |
|
19 |
-
_, df = Average_Race_Pace.plot(YEAR_SELECTED, RACE_SELECTED)
|
20 |
|
21 |
st.dataframe(pd.DataFrame(df)[['Driver','LapTime','Diff','Team']])
|
|
|
2 |
import streamlit as st
|
3 |
from repo_directory.v2 import Average_Race_Pace
|
4 |
from repo_directory import button
|
5 |
+
from repo_directory.v2 import utils
|
6 |
|
7 |
import pandas as pd
|
8 |
|
|
|
15 |
'Select Race',
|
16 |
utils.get_events(YEAR_SELECTED))
|
17 |
|
18 |
+
SESSION_SELECTED = st.selectbox('Select Session', ('R','SR'))
|
19 |
|
20 |
+
_, df = Average_Race_Pace.plot(YEAR_SELECTED, RACE_SELECTED, SESSION_SELECTED,1.07)
|
21 |
|
22 |
st.dataframe(pd.DataFrame(df)[['Driver','LapTime','Diff','Team']])
|