I would like to convert the timestamp column to datetime format in a pandas dataframe. I used:
df['My_Datetime'] = pd.to_datetime(df['My_Datetime'])
df looks like:
ID Timestamp
0 AM12C 2002-11-30 00:00:00
2 BX900 2008-06-30 00:00:00
3 C1200 2012-06-30 00:00:00
...
and it caught error:
ValueError: mixed datetimes and integers in passed array
I removed the duplicates:
df.drop_duplicates(keep=False, inplace=True)
and tried again, but no luck.