每行也输出dhm

main
邝健钧 1 month ago
parent aeb4014436
commit a8f737423b

@ -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

Loading…
Cancel
Save