This is my DataFrame:
dt_object Lng
1 2020-01-01 00:00:00 1.57423
2 2020-01-01 01:00:00 1.57444
3 2020-01-01 02:00:00 1.57465
4 2020-01-01 03:00:00 1.57486
5 2020-01-01 04:00:00 1.57506
dt_object prepared with python classic datetime function. But
print (df.columns)
gives me:
Index(['dt_object', 'Lng'], dtype='object'),
so they both are object types.
I try:
df_candles['dt_object'] = df_candles['dt_object'].astype('datetime64')
but it doesn't help.
It is still object. How can i convert this column to pandas 'datetime64'?