From 6e848911babebcbe01170e7ae95582818057f6bc Mon Sep 17 00:00:00 2001 From: perhalvorsen <31341520+pmhalvor@users.noreply.github.com> Date: Thu, 7 Nov 2024 21:53:50 +0100 Subject: [PATCH] str concat --- src/stages/audio.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)