My csv file has a column with date times in it that look like this :
"2021-01-24 20:10:58"
and I've written the following :
import pandas as pd
data = pd.read_csv(r'C:\Users\user\Desktop\foo\data.csv', index_col=1, parse_dates=True, infer_datetime_format=True)
print(data.dtypes)
which shows basically all of my columns as 'object' type. Can someone help me understand what I'm missing?