When I read data from database (or csv, etc.) pandas keep storing date-only data as timestamp and adds 00:00:00
? Is there a way to enforce that the column is of type datetime.date and therefore no time is stored?
I tried this but it seems the 00:00:00 is more sticky than originally thought.
pd.to_datetime(mydf['date'], format='%Y-%m-%d').iloc[0]
Out[68]: Timestamp('2015-03-27 00:00:00')
Can i have instead of Timestamp the whole column be of type just datetime.date?