I have a question regarding converting a tseries.period.PeriodIndex into a datetime.
I have a DataFrame which looks like this:
colors c
You can also use the following to get exactly the same result.
idx.astype('datetime64[ns]')
To convert back to period, you can do:
idx.to_period(freq='D')