Spaces:
Running
Running
tracinginsights
commited on
Commit
•
ca08eb2
1
Parent(s):
7c0f0ef
Update pages/Download_Raw_Data.py
Browse files
pages/Download_Raw_Data.py
CHANGED
@@ -1,19 +1,19 @@
|
|
1 |
import streamlit as st
|
2 |
from repo_directory import Download_Raw_Data as dl
|
3 |
-
from repo_directory import button
|
4 |
import pandas as pd
|
5 |
|
6 |
YEAR_SELECTED = st.selectbox(
|
7 |
'Select Year',
|
8 |
-
(2023, 2022, 2021, 2020, 2019, 2018))
|
9 |
|
10 |
RACE_SELECTED = st.selectbox(
|
11 |
'Select Race',
|
12 |
-
(
|
13 |
|
14 |
SESSION = st.selectbox(
|
15 |
'Select Session',
|
16 |
-
(
|
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')
|
|
|
1 |
import streamlit as st
|
2 |
from repo_directory import Download_Raw_Data as dl
|
3 |
+
from repo_directory import button, utils
|
4 |
import pandas as pd
|
5 |
|
6 |
YEAR_SELECTED = st.selectbox(
|
7 |
'Select Year',
|
8 |
+
(2024,2023, 2022, 2021, 2020, 2019, 2018))
|
9 |
|
10 |
RACE_SELECTED = st.selectbox(
|
11 |
'Select Race',
|
12 |
+
utils.get_events(YEAR_SELECTED))
|
13 |
|
14 |
SESSION = st.selectbox(
|
15 |
'Select Session',
|
16 |
+
utils.get_sessions(YEAR_SELECTED, RACE_SELECTED))
|
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')
|