Spaces:
Running
Running
tracinginsights
commited on
Commit
•
0d298a9
1
Parent(s):
357b57e
Update pages/Download_Raw_Data.py
Browse files
pages/Download_Raw_Data.py
CHANGED
@@ -15,7 +15,7 @@ SESSION = st.selectbox(
|
|
15 |
'Select Session',
|
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 |
|
@@ -23,6 +23,12 @@ st.dataframe(pd.read_csv(f'{YEAR_SELECTED}-{RACE_SELECTED}-{SESSION}.csv'))
|
|
23 |
with open(f'{YEAR_SELECTED}-{RACE_SELECTED}-{SESSION}.csv') as f:
|
24 |
st.download_button('Click to Download LapTimes Data', f, file_name=f'{YEAR_SELECTED}-{RACE_SELECTED}-{SESSION}.csv')
|
25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
st.write('For Detailed Telemetry Data')
|
27 |
DRIVERS_SELECTED = st.multiselect(
|
28 |
'Select Driver',
|
|
|
15 |
'Select Session',
|
16 |
('FP1', 'FP2', 'FP3', 'Q', 'SQ', 'R'))
|
17 |
|
18 |
+
laps, drivers_list, weather = 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 |
|
|
|
23 |
with open(f'{YEAR_SELECTED}-{RACE_SELECTED}-{SESSION}.csv') as f:
|
24 |
st.download_button('Click to Download LapTimes Data', f, file_name=f'{YEAR_SELECTED}-{RACE_SELECTED}-{SESSION}.csv')
|
25 |
|
26 |
+
weather.to_csv(f'{YEAR_SELECTED}-{RACE_SELECTED}-{SESSION}-weather.csv')
|
27 |
+
st.dataframe(pd.read_csv(f'{YEAR_SELECTED}-{RACE_SELECTED}-{SESSION}-weather.csv'))
|
28 |
+
|
29 |
+
with open(f'{YEAR_SELECTED}-{RACE_SELECTED}-{SESSION}-weather.csv') as f:
|
30 |
+
st.download_button('Click to Download Weather Data', f, file_name=f'{YEAR_SELECTED}-{RACE_SELECTED}-{SESSION}-weather.csv')
|
31 |
+
|
32 |
st.write('For Detailed Telemetry Data')
|
33 |
DRIVERS_SELECTED = st.multiselect(
|
34 |
'Select Driver',
|