James McCool commited on
Commit
08ad959
·
1 Parent(s): 393ecd8

Update game rotation timeline plot with data_frame parameter

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -702,7 +702,7 @@ with tab5:
702
  text_vals = pd.Series(check_rotation['minutes'].tolist())
703
  y_vals = pd.Series(check_rotation['Task'].tolist())
704
 
705
- fig = px.timeline(x_start=check_rotation['Start'], x_end=check_rotation['Finish'], y=check_rotation['Task'], range_x=[0,check_rotation["Finish"].max()], text=check_rotation['minutes'])
706
 
707
  fig.layout.xaxis.type = 'linear'
708
  # fig.update_yaxes(autorange="reversed")
@@ -739,7 +739,7 @@ with tab5:
739
  game_rot_stats = check_rotation.reindex(game_rot_cols,axis="columns")
740
  game_rot_stats = game_rot_stats.drop_duplicates(subset='PLAYER_NAME')
741
 
742
- fig = px.timeline(check_rotation, x_start="Start", x_end="Finish", y="Task", range_x=[0,check_rotation["Finish"].max()], text='minutes')
743
 
744
  fig.layout.xaxis.type = 'linear'
745
  # fig.update_yaxes(autorange="reversed")
 
702
  text_vals = pd.Series(check_rotation['minutes'].tolist())
703
  y_vals = pd.Series(check_rotation['Task'].tolist())
704
 
705
+ fig = px.timeline(data_frame=check_rotation, x_start='Start', x_end='Finish', y='Task', range_x=[0,check_rotation["Finish"].max()], text='minutes')
706
 
707
  fig.layout.xaxis.type = 'linear'
708
  # fig.update_yaxes(autorange="reversed")
 
739
  game_rot_stats = check_rotation.reindex(game_rot_cols,axis="columns")
740
  game_rot_stats = game_rot_stats.drop_duplicates(subset='PLAYER_NAME')
741
 
742
+ fig = px.timeline(data_frame=check_rotation, x_start="Start", x_end="Finish", y="Task", range_x=[0,check_rotation["Finish"].max()], text='minutes')
743
 
744
  fig.layout.xaxis.type = 'linear'
745
  # fig.update_yaxes(autorange="reversed")