diff --git a/src/stages/audio.py b/src/stages/audio.py index a76894c..46b015c 100644 --- a/src/stages/audio.py +++ b/src/stages/audio.py @@ -163,8 +163,8 @@ def _build_time_frames(self, df: pd.DataFrame): df["startTime"] = df["startTime"].astype(str).apply(lambda x: x.split(".")[0]) df["endTime"] = df["endTime"].astype(str).apply(lambda x: x.split(".")[0]) - df["startTime"] = pd.to_datetime(df["startDate"].astype(str) + ' ' + df["startTime"]) - df["endTime"] = pd.to_datetime(df["startDate"].astype(str) + ' ' + df["endTime"]) + df["startTime"] = pd.to_datetime(" ".join([df["startDate"].astype(str), df["startTime"])) + df["endTime"] = pd.to_datetime(" ".join([df["startDate"].astype(str), df["endTime"]])) df["start_time"] = df.startTime - timedelta(seconds=margin) df["end_time"] = df.endTime + timedelta(seconds=margin)