diff --git a/predict_with_excel.py b/predict_with_excel.py index 13ec5b6..3789097 100644 --- a/predict_with_excel.py +++ b/predict_with_excel.py @@ -379,6 +379,8 @@ def build_prediction_dataframe(df: pd.DataFrame) -> pd.DataFrame: total_minutes = df_without_last["焊接工时"].sum() total_row["焊接工时"] = minutes_to_dhm_format(total_minutes) + df_without_last["焊接工时"] = df_without_last["焊接工时"].apply(minutes_to_dhm_format) + result_df = pd.concat([df_without_last, pd.DataFrame([total_row])], ignore_index=True) return result_df