Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -126,7 +126,7 @@ with tab2:
|
|
126 |
|
127 |
with tab3:
|
128 |
st.info(t_stamp)
|
129 |
-
if st.button("Reset Data", key='
|
130 |
st.cache_data.clear()
|
131 |
game_model, player_stats, prop_frame, timestamp = init_baselines()
|
132 |
t_stamp = f"Last Update: " + str(timestamp) + f" CST"
|
@@ -135,7 +135,7 @@ with tab3:
|
|
135 |
team_var5 = st.multiselect('Which teams would you like to include in the tables?', options = player_stats['Team'].unique(), key='team_var5')
|
136 |
elif split_var5 == 'All':
|
137 |
team_var5 = player_stats.Team.values.tolist()
|
138 |
-
prop_type_var2 = st.
|
139 |
prop_frame = prop_frame[prop_frame['Team'].isin(team_var5)]
|
140 |
prop_frame = prop_frame[prop_frame['prop_type'].isin(prop_type_var2)]
|
141 |
prop_frame_disp = prop_frame.set_index('Player')
|
@@ -150,7 +150,7 @@ with tab3:
|
|
150 |
|
151 |
with tab4:
|
152 |
st.info(t_stamp)
|
153 |
-
if st.button("Reset Data", key='
|
154 |
st.cache_data.clear()
|
155 |
game_model, player_stats, prop_frame, timestamp = init_baselines()
|
156 |
t_stamp = f"Last Update: " + str(timestamp) + f" CST"
|
|
|
126 |
|
127 |
with tab3:
|
128 |
st.info(t_stamp)
|
129 |
+
if st.button("Reset Data", key='reset3'):
|
130 |
st.cache_data.clear()
|
131 |
game_model, player_stats, prop_frame, timestamp = init_baselines()
|
132 |
t_stamp = f"Last Update: " + str(timestamp) + f" CST"
|
|
|
135 |
team_var5 = st.multiselect('Which teams would you like to include in the tables?', options = player_stats['Team'].unique(), key='team_var5')
|
136 |
elif split_var5 == 'All':
|
137 |
team_var5 = player_stats.Team.values.tolist()
|
138 |
+
prop_type_var2 = st.selectbox('Select type of prop are you wanting to view', options = prop_table_options)
|
139 |
prop_frame = prop_frame[prop_frame['Team'].isin(team_var5)]
|
140 |
prop_frame = prop_frame[prop_frame['prop_type'].isin(prop_type_var2)]
|
141 |
prop_frame_disp = prop_frame.set_index('Player')
|
|
|
150 |
|
151 |
with tab4:
|
152 |
st.info(t_stamp)
|
153 |
+
if st.button("Reset Data", key='reset4'):
|
154 |
st.cache_data.clear()
|
155 |
game_model, player_stats, prop_frame, timestamp = init_baselines()
|
156 |
t_stamp = f"Last Update: " + str(timestamp) + f" CST"
|