I have a DatetimeIndex
object comprised of two dates given as follows:
import pandas as pd
timestamps = pd.DatetimeIndex(['2014-1-1', '2014-1-2'], freq='D')
which looks like this:
DatetimeIndex(['2014-01-01', '2014-01-02'], dtype='datetime64[ns]', freq='D')
How do I get a list of dates from the timestamps
object? i.e. I want the following:
['2014-01-01', '2014-01-02']