Empty DataFrame with PeriodIndex doesn't maintain index type on resample (original) (raw)
ref: #13079 (comment)
In [5]: pd.DataFrame(index=pd.PeriodIndex([],freq='D')).resample('M').mean().index Out[5]: Index([], dtype='object')
ref: #13079 (comment)
In [5]: pd.DataFrame(index=pd.PeriodIndex([],freq='D')).resample('M').mean().index Out[5]: Index([], dtype='object')