I have such a time
data column in a pandas dataframe df
:
'31/03/21 00'
00
is the hour of a day.
I now want to get thie data to datetime-format and used this code:
df['time'] = pd.to_datetime(df['time'], format = 'dd/mm/YY HH')
But get this error:
ValueError: time data '31/03/21 00' does not match format 'dd/mm/YY HH' (match)
I am now wondering how to modify the format
option in order to get what I want?