API: DatetimeIndex and PeriodIndex have same representation