API: make 'freq' mean the same thing for PeriodIndex as DTI/TDI · Issue #47227 · pandas-dev/pandas (original) (raw)

ATM PeriodIndex.freq tells us about the index's dtype, while DatetimeIndex.freq tells us about the difference between any two consecutive elements.

Changing PeriodIndex.freq would let us share more code.

update If we do this, we should also deprecate PeriodIndex.is_full, which seems to be a kludge for checking if the index is freq-like in the DTI sense