I have a dataframe with number of different dates as index:
2005-01-02
2005-01-03
2005-01-04
2005-01-04
...
2014-12-30
2014-12-31
and i want to format them as MM-DD without changing the type to string. Can someone help me with that? And second question: If I do that, can I still use dt.dayofyear?