Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -110,7 +110,6 @@ def init_baselines():
|
|
110 |
game_rot[data_cols] = game_rot[data_cols].apply(pd.to_numeric, errors='coerce')
|
111 |
game_rot['spread'] = game_rot['GAME_ID'].map(spread_dict)
|
112 |
game_rot['GAME_DATE'] = pd.to_datetime(game_rot['GAME_DATE']).dt.date
|
113 |
-
game_rot = game_rot.sort_values(by='MIN', ascending=False)
|
114 |
|
115 |
timestamp = gamelog_table['Date'].max()
|
116 |
|
@@ -656,6 +655,7 @@ with tab5:
|
|
656 |
if game_rot_view == 'Player Rotations':
|
657 |
display = st.container()
|
658 |
check_rotation = working_data[working_data['backlog_lookup'] == game_id_var]
|
|
|
659 |
|
660 |
fig = px.timeline(check_rotation, x_start="Start", x_end="Finish", y="Task", range_x=[0,check_rotation["Finish"].max()], text='minutes')
|
661 |
fig.update_yaxes(autorange="reversed")
|
@@ -671,6 +671,7 @@ with tab5:
|
|
671 |
elif game_rot_view == 'Team Rotations':
|
672 |
display = st.container()
|
673 |
check_rotation = working_data[working_data['backlog_lookup'] == game_id_var]
|
|
|
674 |
|
675 |
fig = px.timeline(check_rotation, x_start="Start", x_end="Finish", y="Task", range_x=[0,check_rotation["Finish"].max()], text='minutes')
|
676 |
fig.update_yaxes(autorange="reversed")
|
|
|
110 |
game_rot[data_cols] = game_rot[data_cols].apply(pd.to_numeric, errors='coerce')
|
111 |
game_rot['spread'] = game_rot['GAME_ID'].map(spread_dict)
|
112 |
game_rot['GAME_DATE'] = pd.to_datetime(game_rot['GAME_DATE']).dt.date
|
|
|
113 |
|
114 |
timestamp = gamelog_table['Date'].max()
|
115 |
|
|
|
655 |
if game_rot_view == 'Player Rotations':
|
656 |
display = st.container()
|
657 |
check_rotation = working_data[working_data['backlog_lookup'] == game_id_var]
|
658 |
+
check_rotation = check_rotation.sort_values(by='Start', ascending=False)
|
659 |
|
660 |
fig = px.timeline(check_rotation, x_start="Start", x_end="Finish", y="Task", range_x=[0,check_rotation["Finish"].max()], text='minutes')
|
661 |
fig.update_yaxes(autorange="reversed")
|
|
|
671 |
elif game_rot_view == 'Team Rotations':
|
672 |
display = st.container()
|
673 |
check_rotation = working_data[working_data['backlog_lookup'] == game_id_var]
|
674 |
+
check_rotation = check_rotation.sort_values(by='Start', ascending=False)
|
675 |
|
676 |
fig = px.timeline(check_rotation, x_start="Start", x_end="Finish", y="Task", range_x=[0,check_rotation["Finish"].max()], text='minutes')
|
677 |
fig.update_yaxes(autorange="reversed")
|