Spaces:
Running
Running
tracinginsights
commited on
Commit
·
9b90510
1
Parent(s):
9a05d9a
Update pages/Download_Raw_Data.py
Browse files
pages/Download_Raw_Data.py
CHANGED
@@ -16,10 +16,8 @@ SESSION = st.selectbox(
|
|
16 |
('FP1', 'FP2', 'FP3', 'Q', 'SQ', 'R'))
|
17 |
|
18 |
laps, drivers_list = dl.get_laps(YEAR_SELECTED, RACE_SELECTED, SESSION)
|
19 |
-
st.dataframe(data=pd.DataFrame(laps))
|
20 |
-
|
21 |
laps.to_csv(f'{YEAR_SELECTED}-{RACE_SELECTED}-{SESSION}.csv')
|
22 |
-
|
23 |
|
24 |
|
25 |
with open(f'{YEAR_SELECTED}-{RACE_SELECTED}-{SESSION}.csv') as f:
|
@@ -31,7 +29,7 @@ DRIVERS_SELECTED = st.multiselect(
|
|
31 |
drivers_list)
|
32 |
|
33 |
telemetry = dl.selected_telemetry(DRIVERS_SELECTED, laps)
|
34 |
-
|
35 |
telemetry.to_csv(f'{YEAR_SELECTED}-{RACE_SELECTED}-{SESSION}-Tel.csv')
|
36 |
|
37 |
|
|
|
16 |
('FP1', 'FP2', 'FP3', 'Q', 'SQ', 'R'))
|
17 |
|
18 |
laps, drivers_list = dl.get_laps(YEAR_SELECTED, RACE_SELECTED, SESSION)
|
|
|
|
|
19 |
laps.to_csv(f'{YEAR_SELECTED}-{RACE_SELECTED}-{SESSION}.csv')
|
20 |
+
st.dataframe(pd.read_csv(f'{YEAR_SELECTED}-{RACE_SELECTED}-{SESSION}.csv'))
|
21 |
|
22 |
|
23 |
with open(f'{YEAR_SELECTED}-{RACE_SELECTED}-{SESSION}.csv') as f:
|
|
|
29 |
drivers_list)
|
30 |
|
31 |
telemetry = dl.selected_telemetry(DRIVERS_SELECTED, laps)
|
32 |
+
|
33 |
telemetry.to_csv(f'{YEAR_SELECTED}-{RACE_SELECTED}-{SESSION}-Tel.csv')
|
34 |
|
35 |
|