Skip to content

Commit b162b27

Browse files
committed
fix: remove rows with NaN in color or edge_color to prevent non-normalized stages in autotrain table
1 parent e78597b commit b162b27

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

code/util/plot_autotrain_manager.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ def plot_manager_all_progress_bokeh_source(
104104
axis=1,
105105
)
106106
df_to_draw.round(3)
107+
108+
# --- Remove rows with NaN in color or edge_color ---
109+
# to fix a bug where non-normalized stages appears in the autotrain table
110+
df_to_draw = df_to_draw.dropna(subset=["color", "edge_color"])
107111

108112
# --- Filter recent days ---
109113
df_to_draw['session_date'] = pd.to_datetime(df_to_draw['session_date'])

0 commit comments

Comments
 (0)