Empty DataFrame with PeriodIndex doesn't maintain index type on resample · Issue #13212 · pandas-dev/pandas (original) (raw)

In [5]: pd.DataFrame(index=pd.PeriodIndex([],freq='D')).resample('M').mean().index Out[5]: Index([], dtype='object')