Skip to content

Commit

Permalink
str concat
Browse files Browse the repository at this point in the history
  • Loading branch information
pmhalvor authored Nov 7, 2024
1 parent d4e3e1e commit 6e84891
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stages/audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6e84891

Please sign in to comment.