Spaces:
Runtime error
Runtime error
James McCool
commited on
Commit
·
33f8e62
1
Parent(s):
1cdf899
Improve data type handling in game rotation timeline plot
Browse files
app.py
CHANGED
@@ -691,8 +691,11 @@ with tab5:
|
|
691 |
display = st.container()
|
692 |
stats_disp = st.container()
|
693 |
check_rotation = team_backlog.sort_values(by=['GAME_DATE', 'Finish'], ascending=[False, True])
|
694 |
-
|
695 |
-
|
|
|
|
|
|
|
696 |
|
697 |
fig = px.timeline(data_frame=check_rotation,
|
698 |
x_start='Start', # Column containing start times
|
|
|
691 |
display = st.container()
|
692 |
stats_disp = st.container()
|
693 |
check_rotation = team_backlog.sort_values(by=['GAME_DATE', 'Finish'], ascending=[False, True])
|
694 |
+
|
695 |
+
# Ensure Start and Finish are numeric and Task is properly set
|
696 |
+
check_rotation['Start'] = pd.to_numeric(check_rotation['Start'], errors='coerce')
|
697 |
+
check_rotation['Finish'] = pd.to_numeric(check_rotation['Finish'], errors='coerce')
|
698 |
+
check_rotation['delta'] = pd.to_numeric(check_rotation['delta'], errors='coerce')
|
699 |
|
700 |
fig = px.timeline(data_frame=check_rotation,
|
701 |
x_start='Start', # Column containing start times
|