Spaces:
Running
Running
tracinginsights
commited on
Commit
•
ba01174
1
Parent(s):
24d379f
Update pages/Average_Race_Pace.py
Browse files
pages/Average_Race_Pace.py
CHANGED
@@ -2,17 +2,18 @@
|
|
2 |
import streamlit as st
|
3 |
from repo_directory import Average_Race_Pace
|
4 |
from repo_directory import button
|
|
|
5 |
|
6 |
import pandas as pd
|
7 |
|
8 |
|
9 |
YEAR_SELECTED = st.selectbox(
|
10 |
'Select Year',
|
11 |
-
(2023, 2022, 2021, 2020, 2019, 2018))
|
12 |
|
13 |
RACE_SELECTED = st.selectbox(
|
14 |
'Select Race',
|
15 |
-
(
|
16 |
|
17 |
|
18 |
_, df = Average_Race_Pace.plot(YEAR_SELECTED, RACE_SELECTED)
|
|
|
2 |
import streamlit as st
|
3 |
from repo_directory import Average_Race_Pace
|
4 |
from repo_directory import button
|
5 |
+
from repo_directory import utils
|
6 |
|
7 |
import pandas as pd
|
8 |
|
9 |
|
10 |
YEAR_SELECTED = st.selectbox(
|
11 |
'Select Year',
|
12 |
+
(2024,2023, 2022, 2021, 2020, 2019, 2018))
|
13 |
|
14 |
RACE_SELECTED = st.selectbox(
|
15 |
'Select Race',
|
16 |
+
utils.get_events(YEAR_SELECTED))
|
17 |
|
18 |
|
19 |
_, df = Average_Race_Pace.plot(YEAR_SELECTED, RACE_SELECTED)
|