Spaces:
Running
Running
tracinginsights
commited on
Commit
·
15f8b4a
1
Parent(s):
8346567
Update pages/Fastest_Lap.py
Browse files- pages/Fastest_Lap.py +2 -11
pages/Fastest_Lap.py
CHANGED
@@ -16,17 +16,8 @@ SESSION = st.selectbox(
|
|
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]
|
22 |
-
TIME = df.iloc[0, 1]
|
23 |
-
MINUTE = TIME.total_seconds() // 60
|
24 |
-
MINUTE = int(MINUTE)
|
25 |
|
26 |
-
SECONDS = TIME.total_seconds() % 60
|
27 |
-
SECONDS = int(SECONDS)
|
28 |
-
MICROSECONDS = TIME.microseconds // 1000
|
29 |
|
30 |
-
|
31 |
-
|
32 |
-
Fastest_Lap.plot(df, f1session)
|
|
|
16 |
('FP1', 'FP2', 'FP3', 'Q', 'SQ', 'R'))
|
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)
|
|
|
|