Skip to content

Commit c8fadb9

Browse files
committed
Fix rank method with nullable int
1 parent f5113b3 commit c8fadb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/arrays/masked.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1058,7 +1058,7 @@ def factorize(
10581058

10591059
@doc(ExtensionArray._values_for_argsort)
10601060
def _values_for_argsort(self) -> np.ndarray:
1061-
return self
1061+
return type(self)(self._data, self._mask)
10621062

10631063
def value_counts(self, dropna: bool = True) -> Series:
10641064
"""

0 commit comments

Comments
 (0)