I have a df
in Python with Dtype
of df['timestamp']
as object
The actual data in the timestamp
column consists of hourly date times:
01012011 0:00
01012011 1:00
01012011 2:00
...
01012011 22:00
01012011 23:00
01012011 24:00
...
etc.,
I want to convert the Dtype
to datetime64
and tried df_1['timestamp'] = pd.to_datetime(df_1['timestamp'])
but received the following error ParserError: month must be in 1..12: 01012011 0:00
. I believe there is a simple solution but haven't managed to figure it out yet.