I have a dataframe. I want to convert a column called Date to a datetime type.
So I have the line below,
datesP = pd.to_datetime(df['Date'])
but when I check the type with the line below
datesP.dtype
I get, dtype of M8[ns] (there is a less than sign before the M but it cause issue when typing this post)
What am I missing why does this not return a datetime object?