James McCool commited on
Commit
0e8a988
·
1 Parent(s): aeba66d

Modify game rotation timeline to convert Start column to string when appending to Task

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -693,7 +693,7 @@ with tab5:
693
  check_rotation = team_backlog.sort_values(by=['GAME_DATE', 'Finish'], ascending=[False, True])
694
  check_rotation['Start'] = check_rotation['Start'].astype(float)
695
  check_rotation['Finish'] = check_rotation['Finish'].astype(float)
696
- check_rotation['Task'] = check_rotation['Task'] + ' ' + check_rotation['Start']
697
  st.write(check_rotation)
698
  game_rot_stats = check_rotation.reindex(game_rot_cols,axis="columns")
699
  game_rot_stats = game_rot_stats.drop_duplicates(subset='backlog_lookup')
@@ -732,6 +732,7 @@ with tab5:
732
  stats_disp = st.container()
733
  check_rotation = working_data[working_data['backlog_lookup'] == game_id_var]
734
  check_rotation = check_rotation.sort_values(by='Start', ascending=True)
 
735
  game_rot_stats = check_rotation.reindex(game_rot_cols,axis="columns")
736
  game_rot_stats = game_rot_stats.drop_duplicates(subset='PLAYER_NAME')
737
 
 
693
  check_rotation = team_backlog.sort_values(by=['GAME_DATE', 'Finish'], ascending=[False, True])
694
  check_rotation['Start'] = check_rotation['Start'].astype(float)
695
  check_rotation['Finish'] = check_rotation['Finish'].astype(float)
696
+ check_rotation['Task'] = check_rotation['Task'] + ' ' + check_rotation['Start'].astype(str)
697
  st.write(check_rotation)
698
  game_rot_stats = check_rotation.reindex(game_rot_cols,axis="columns")
699
  game_rot_stats = game_rot_stats.drop_duplicates(subset='backlog_lookup')
 
732
  stats_disp = st.container()
733
  check_rotation = working_data[working_data['backlog_lookup'] == game_id_var]
734
  check_rotation = check_rotation.sort_values(by='Start', ascending=True)
735
+ check_rotation['Task'] = check_rotation['Task'] + ' ' + check_rotation['Start'].astype(str)
736
  game_rot_stats = check_rotation.reindex(game_rot_cols,axis="columns")
737
  game_rot_stats = game_rot_stats.drop_duplicates(subset='PLAYER_NAME')
738