If I have a datecolumn of dates likes this
df[\'date_utc\'] = pd.to_datetime(df[\'date_utc\']) df[\'date_utc\'] 0 2020-12-01 22:08:07 1 2020-11-11