From 05c761aac788c7ed17640f4b95c369dc9b2275dd Mon Sep 17 00:00:00 2001 From: PGijsbers Date: Sun, 9 Apr 2023 20:02:08 +0200 Subject: [PATCH] Explicitly add datetime format for parsing from log --- gama/logging/GamaReport.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gama/logging/GamaReport.py b/gama/logging/GamaReport.py index 51d8bef4..68b388ea 100644 --- a/gama/logging/GamaReport.py +++ b/gama/logging/GamaReport.py @@ -89,7 +89,9 @@ def tuple_to_metrics(tuple_str): return pd.Series([float(value) for value in tuple_str[1:-1].split(",")]) df[self.metrics] = df.score.apply(tuple_to_metrics) - df.start = pd.to_datetime(df.start) # needed? + df.start = pd.to_datetime( + df.start, format="%Y-%m-%d %H:%M:%S,%f" + ) # needed? df.duration = pd.to_timedelta(df.duration, unit="s") new_individuals = {