I have a dataframe with an index formatted in datetime as such:
2019-01-01 00:00:00+00:00
2019-01-02 00:00:00+00:00
2019-01-03 00:00:00+00:00
I would like to only keep the year - month - day component without having to change the index back to a column and then back to index
Desired result:
2019-01-01
2019-01-02
2019-01-03
I have been struggling for quite some time. Hope this hasn't been asked before. Thanks for your input! :)