I have this dataset:
my_df = pd.DataFrame({'id':[1,2,3],
'date':['2019-05-16T12:39:40+0000','2019-05-16T12:39:50+0000','2019-03-28T19:36:42+0000']})
id date
0 1 2019-05-16T12:39:40+0000
1 2 2019-05-16T12:39:50+0000
2 3 2019-03-28T19:36:42+0000
And I want to convert it to date time, but there is a T in the middle I can't parse. This is what I have tried:
my_df['date'] = pd.to_datetime(df['date'], format='yyyy-mm-ddThh:mm:ss')
But it returns:
ValueError: time data '2019-05-16T12:39:40+0000' does not match format 'yyyy-mm-ddThh:mm:ss' (match)
Please, can you help me with this question? Am I parsing wrongly the string?