Spaces:
Running
Running
File size: 543 Bytes
ebbd6bd 0b9b1ca ebbd6bd 482e129 ebbd6bd 482e129 ebbd6bd 482e129 4a57d1b 482e129 ebbd6bd 0b9b1ca |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
import streamlit as st
from repo_directory import PitStops
from repo_directory import button
import datetime
YEAR_SELECTED = st.selectbox(
'Select Year',
(2023, 2022, 2021, 2020, 2019, 2018))
season_events, events_list = PitStops.get_season_events(YEAR_SELECTED)
RACE_SELECTED = st.selectbox(
'Select Race',
events_list)
event_id = PitStops.get_event_id(season_events, RACE_SELECTED)
df = PitStops.get_pitstops(event_id)
PitStops.plot_event_pitstops(df, RACE_SELECTED)
PitStops.plot_full_season_median(YEAR_SELECTED)
|