tracinginsights commited on
Commit
4bd0370
·
verified ·
1 Parent(s): 2c0c605

Update pages/Fastest_Lap.py

Browse files
Files changed (1) hide show
  1. pages/Fastest_Lap.py +3 -8
pages/Fastest_Lap.py CHANGED
@@ -1,6 +1,6 @@
1
  import streamlit as st
2
- from repo_directory import Fastest_Lap
3
- from repo_directory import button, utils
4
 
5
 
6
  YEAR_SELECTED = st.selectbox(
@@ -15,9 +15,4 @@ SESSION = st.selectbox(
15
  'Select Session',
16
  utils.get_sessions(YEAR_SELECTED, RACE_SELECTED))
17
 
18
-
19
- df, f1session, total_time, driver = Fastest_Lap.get_fastest_laps(YEAR_SELECTED,RACE_SELECTED, SESSION )
20
-
21
-
22
-
23
- Fastest_Lap.plot(df, f1session,SESSION, total_time, driver)
 
1
  import streamlit as st
2
+ from repo_directory.v2 import Fastest_Lap, utils
3
+ from repo_directory import button
4
 
5
 
6
  YEAR_SELECTED = st.selectbox(
 
15
  'Select Session',
16
  utils.get_sessions(YEAR_SELECTED, RACE_SELECTED))
17
 
18
+ _, df = Fastest_Lap.plot(YEAR_SELECTED, RACE_SELECTED, SESSION)