I have the following index values in a pandas dataframe.
df.index[0:5]
DatetimeIndex(['2004-05-31', '2004-06-30', '2004-07-31', '2004-08-31',
'2004-09-30'],
dtype='datetime64[ns]', name='as_of_dt', freq=None)
How can I convert them into a list of like this:
['5/31/2004','6/30/2004','7/31/2004','8/31/2004']