James McCool commited on
Commit
cca826c
·
1 Parent(s): 983f4d2

Enhance game rotation timeline with task and start time display

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -691,12 +691,13 @@ with tab5:
691
  display = st.container()
692
  stats_disp = st.container()
693
  check_rotation = team_backlog.sort_values(by='GAME_DATE', ascending=False)
 
694
  st.write(check_rotation)
695
  game_rot_stats = check_rotation.reindex(game_rot_cols,axis="columns")
696
  game_rot_stats = game_rot_stats.drop_duplicates(subset='backlog_lookup')
697
 
698
  fig = px.timeline(check_rotation, x_start="Start", x_end="Finish", y="Task", range_x=[0,check_rotation["Finish"].max()], text='delta')
699
- # fig.update_yaxes(autorange="reversed")
700
 
701
  # fig.layout.xaxis.type = 'linear'
702
  # fig.data[0].x = check_rotation.delta.tolist()
 
691
  display = st.container()
692
  stats_disp = st.container()
693
  check_rotation = team_backlog.sort_values(by='GAME_DATE', ascending=False)
694
+ check_rotation['Task'] = check_rotation['Task'] + ' - ' + check_rotation['Start'].astype(str)
695
  st.write(check_rotation)
696
  game_rot_stats = check_rotation.reindex(game_rot_cols,axis="columns")
697
  game_rot_stats = game_rot_stats.drop_duplicates(subset='backlog_lookup')
698
 
699
  fig = px.timeline(check_rotation, x_start="Start", x_end="Finish", y="Task", range_x=[0,check_rotation["Finish"].max()], text='delta')
700
+ fig.update_yaxes(autorange="reversed")
701
 
702
  # fig.layout.xaxis.type = 'linear'
703
  # fig.data[0].x = check_rotation.delta.tolist()