I have a dataframe with the following infos:
Departure Time Offset Dep Arrival Time Offset Arr
0 05:10 +01:00 08:25 +01:00
1 08:05 +01:00 10:10 +01:00
2 11:50 +01:00 12:05 +01:00
3 11:55 +01:00 14:15 +00:00
4 14:55 +02:00 18:40 +01:00
df.dtypes
Departure Time object
Offset Departure object
Arrival Time object
Offset Arrival object
dtype: object
I would like to create another column for Departure time that includes the Departure Offset as offset in the datetime format.
I tried this but without success
df['Departure_Time'] = df['Departure Time'] + df['Offset Departure'].astype('timedelta64')
ValueError: Could not convert object to NumPy timedelta