progress_bar=progress_bar,
progress_callback=progress_callback)
feature_matrix.sort_index(level="time", kind="mergesort", inplace=True)if not cutoff_time_in_index:
feature_matrix.reset_index(level="time", drop=True, inplace=True)
if save_progress and os.path.exists(os.path.join(save_progress, "temp")):
After Change
progress_callback=progress_callback)
// ensure rows are sorted by input order
feature_matrix = feature_matrix.reindex(cutoff_time[["instance_id", "time"]])
if not cutoff_time_in_index:
feature_matrix.reset_index(level="time", drop=True, inplace=True)