Late-night TV programs may be marked as starting at 25:00 or 26:00. Since the data I'm dealing with has a date string and a time in 25 o'clock notation, make a note of how to convert it to DateTime format.
test.py
df["Date and time"] = pd.to_datetime(df["date"]) + pd.to_timedelta(df["Times of Day"])
By converting the time to Timedelta format, the time in 25 o'clock was treated as 25 hours (1 day and 1 hour) and added to datetime.
What should I call the 25 o'clock notation? ..
Recommended Posts