I have following pandas dataframe with date column as object
object
ID Date Volume 0 13-02-2018 00:06 85 1
try this:
df['Date'] = pd.to_datetime(df.Date) df['Date'] = df['Date'].dt.strftime('%Y-%m-%d %H:%M')
link: Series.dt.strftime