Spaces:
Running
Running
tracinginsights
commited on
Commit
·
ddf0c63
1
Parent(s):
6af7771
Update pages/Race_Launch_Performance_Ratings.py
Browse files
pages/Race_Launch_Performance_Ratings.py
CHANGED
@@ -14,7 +14,7 @@ SESSION = st.selectbox(
|
|
14 |
'Select Session',
|
15 |
('R', 'SQ'))
|
16 |
|
17 |
-
reaction_df, drivers = rl.get_laps_and_drivers(YEAR_SELECTED, RACE_SELECTED, SESSION)
|
18 |
|
19 |
DRIVERS_REMOVED = st.multiselect(
|
20 |
'Remove drivers starting from pitlane',
|
@@ -24,8 +24,6 @@ DRIVERS_REMOVED = st.multiselect(
|
|
24 |
|
25 |
REMAINING_DRIVERS = list(set(drivers.tolist()) - set(DRIVERS_REMOVED))
|
26 |
|
27 |
-
|
28 |
-
|
29 |
ratings_df = rl.get_ratings(laps, drivers, reaction_df, REMAINING_DRIVERS)
|
30 |
|
31 |
rl.plot_ratings(ratings_df,YEAR_SELECTED, RACE_SELECTED, SESSION)
|
|
|
14 |
'Select Session',
|
15 |
('R', 'SQ'))
|
16 |
|
17 |
+
reaction_df, drivers, laps = rl.get_laps_and_drivers(YEAR_SELECTED, RACE_SELECTED, SESSION)
|
18 |
|
19 |
DRIVERS_REMOVED = st.multiselect(
|
20 |
'Remove drivers starting from pitlane',
|
|
|
24 |
|
25 |
REMAINING_DRIVERS = list(set(drivers.tolist()) - set(DRIVERS_REMOVED))
|
26 |
|
|
|
|
|
27 |
ratings_df = rl.get_ratings(laps, drivers, reaction_df, REMAINING_DRIVERS)
|
28 |
|
29 |
rl.plot_ratings(ratings_df,YEAR_SELECTED, RACE_SELECTED, SESSION)
|