tracinginsights commited on
Commit
ebbd6bd
·
1 Parent(s): 24dc754

Create Pit_Stops.py

Browse files
Files changed (1) hide show
  1. pages/Pit_Stops.py +19 -0
pages/Pit_Stops.py ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ from repo_directory import PitStops
3
+ from repo_directory import button
4
+ import datetime
5
+
6
+ YEAR_SELECTED = st.selectbox(
7
+ 'Select Year',
8
+ (2023, 2022, 2021, 2020, 2019, 2018))
9
+
10
+ PitStops.plot_full_season_median(YEAR_SELECTED)
11
+
12
+ season_events, events_list = PitStops.get_season_events(YEAR_SELECTED)
13
+
14
+ RACE_SELECTED = st.selectbox(
15
+ 'Select Race',
16
+ events_list)
17
+
18
+ PitStops.plot_event_pitstops(season_events, RACE_SELECTED)
19
+