I have a pandas 'Time' column which has values in the format 4/7/2013
of type string.
I am trying to convert the entire column into datetime.datetime format.
I used the following code-
df3['Date'] = pd.to_datetime(df3['Date'],format='%m/%d/%Y')
but after doing print(type(df3['Date'].iloc[0]))
the type is coming <class 'pandas._libs.tslibs.timestamps.Timestamp'>
but I wanted to convert it to datetime.datetime format.
What am I doing wrong?
I used this as reference-Convert Pandas Column to DateTime