Skip to content

Commit f3bf0b5

Browse files
qwhelanPingviinituutti
authored andcommitted
PERF: Define PeriodArray._values_for_argsort (pandas-dev#24083)
1 parent 931d885 commit f3bf0b5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pandas/core/arrays/period.py

+3
Original file line numberDiff line numberDiff line change
@@ -828,6 +828,9 @@ def _check_timedeltalike_freq_compat(self, other):
828828
.format(cls=type(self).__name__,
829829
freqstr=self.freqstr))
830830

831+
def _values_for_argsort(self):
832+
return self._data
833+
831834

832835
PeriodArray._add_comparison_ops()
833836
PeriodArray._add_datetimelike_methods()

0 commit comments

Comments
 (0)