Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -517,11 +517,17 @@ with tab4:
|
|
517 |
total_players = indv_players.Player.values.tolist()
|
518 |
total_dates = gamelog_table.Date.values.tolist()
|
519 |
|
520 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
521 |
|
522 |
with col2:
|
523 |
working_data = rot_table
|
524 |
-
rot_display = working_data[working_data['Team']
|
525 |
display = st.container()
|
526 |
|
527 |
rot_display = rot_display.set_index('Player')
|
|
|
517 |
total_players = indv_players.Player.values.tolist()
|
518 |
total_dates = gamelog_table.Date.values.tolist()
|
519 |
|
520 |
+
split_var5 = st.radio("Would you like to view all teams or specific ones?", ('All', 'Specific Teams'), key='split_var5')
|
521 |
+
|
522 |
+
if split_var5 == 'Specific Teams':
|
523 |
+
team_var4 = st.selectbox('Which team would you like to view?', options = total_rot_teams, key='team_var4')
|
524 |
+
elif split_var5 == 'All':
|
525 |
+
team_var4 = total_rot_teams
|
526 |
+
|
527 |
|
528 |
with col2:
|
529 |
working_data = rot_table
|
530 |
+
rot_display = working_data[working_data['Team'].isin(team_var4)]
|
531 |
display = st.container()
|
532 |
|
533 |
rot_display = rot_display.set_index('Player')
|