Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -653,7 +653,7 @@ with tab5:
|
|
653 |
game_rot_low_date = gamelog_table['Date'].min()
|
654 |
game_rot_high_date = gamelog_table['Date'].max()
|
655 |
elif game_rot_view == 'Player Rotations':
|
656 |
-
game_rot_team = st.
|
657 |
|
658 |
game_rot_spread = st.slider("Is there a certain spread range you want to view?", 0, 100, (0, 100), key='game_rot_spread')
|
659 |
|
@@ -675,7 +675,7 @@ with tab5:
|
|
675 |
|
676 |
with col2:
|
677 |
if game_rot_view == 'Player Rotations':
|
678 |
-
team_backlog = game_rot[game_rot['PLAYER_NAME']
|
679 |
team_backlog = team_backlog[team_backlog['GAME_DATE'] >= game_rot_low_date]
|
680 |
team_backlog = team_backlog[team_backlog['GAME_DATE'] <= game_rot_high_date]
|
681 |
team_backlog = team_backlog[team_backlog['MIN'] >= game_rot_min[0]]
|
|
|
653 |
game_rot_low_date = gamelog_table['Date'].min()
|
654 |
game_rot_high_date = gamelog_table['Date'].max()
|
655 |
elif game_rot_view == 'Player Rotations':
|
656 |
+
game_rot_team = st.multiselect("What players would you like to work with?", options = total_players, key='game_rot_team')
|
657 |
|
658 |
game_rot_spread = st.slider("Is there a certain spread range you want to view?", 0, 100, (0, 100), key='game_rot_spread')
|
659 |
|
|
|
675 |
|
676 |
with col2:
|
677 |
if game_rot_view == 'Player Rotations':
|
678 |
+
team_backlog = game_rot[game_rot['PLAYER_NAME'].isin(game_rot_team)]
|
679 |
team_backlog = team_backlog[team_backlog['GAME_DATE'] >= game_rot_low_date]
|
680 |
team_backlog = team_backlog[team_backlog['GAME_DATE'] <= game_rot_high_date]
|
681 |
team_backlog = team_backlog[team_backlog['MIN'] >= game_rot_min[0]]
|