Spaces:
Running
Running
James McCool
commited on
Commit
·
57553f6
1
Parent(s):
4c1a5ef
Update team selection keys to prevent Streamlit key collision
Browse files
app.py
CHANGED
@@ -122,9 +122,9 @@ with tab1:
|
|
122 |
if st.button("Reset Data", key='reset1'):
|
123 |
st.cache_data.clear()
|
124 |
prop_display, prop_trends, pick_frame, team_dict = pull_baselines()
|
125 |
-
team_var = st.radio("Would you like to view all teams or specific ones?", ('All', 'Specific Teams'), key='
|
126 |
if team_var == 'Specific Teams':
|
127 |
-
team_var = st.multiselect('Which teams would you like to include in the tables?', options = prop_display['Team'].unique(), key='
|
128 |
elif team_var == 'All':
|
129 |
team_var = prop_display['Team'].unique()
|
130 |
prop_frame = prop_display[prop_display['Team'].isin(team_var)]
|
|
|
122 |
if st.button("Reset Data", key='reset1'):
|
123 |
st.cache_data.clear()
|
124 |
prop_display, prop_trends, pick_frame, team_dict = pull_baselines()
|
125 |
+
team_var = st.radio("Would you like to view all teams or specific ones?", ('All', 'Specific Teams'), key='team_var1')
|
126 |
if team_var == 'Specific Teams':
|
127 |
+
team_var = st.multiselect('Which teams would you like to include in the tables?', options = prop_display['Team'].unique(), key='team_var2')
|
128 |
elif team_var == 'All':
|
129 |
team_var = prop_display['Team'].unique()
|
130 |
prop_frame = prop_display[prop_display['Team'].isin(team_var)]
|