Multichem commited on
Commit
835abe4
·
1 Parent(s): 38e8e60

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
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
- team_var4 = st.selectbox('Which team would you like to view?', options = total_rot_teams, key='team_var4')
 
 
 
 
 
 
521
 
522
  with col2:
523
  working_data = rot_table
524
- rot_display = working_data[working_data['Team'] == team_var4]
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')