BUG/API: PeriodIndex.unique returns ndarray #7540
Labels
API Design
Compat
pandas objects compatability with Numpy or Python functions
Period
Period data type
Milestone
Currently,
Index.unique
returnsndarray
butDatetimeIndex.unique
returnsDatetimeIndex
to preserve datetime information. I thinkPeriodIndex.unique
should also returnPeriodIndex
(currently it returnsndarray
).I'd like to ask which is better to fix all
Index.unique
to returnIndex
for consistency, or only fixPeriodIndex
.The text was updated successfully, but these errors were encountered: