API: DatetimeIndex and PeriodIndex have same representation
Merge pull request #7602 from sinhrks/periodrepr

API: DatetimeIndex and PeriodIndex have same representation