Skip to content

Commit 1816902

Browse files
committed
Fix incorrect double-unpacking
1 parent 9fa6024 commit 1816902

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

pandas/core/arrays/string_arrow.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from __future__ import annotations
22

3-
import operator
43
import re
54
from typing import (
65
TYPE_CHECKING,
@@ -566,10 +565,6 @@ class ArrowStringArrayNumpySemantics(ArrowStringArray):
566565

567566
def _cmp_method(self, other, op):
568567
try:
569-
result = super()._cmp_method(other, op)
568+
return super()._cmp_method(other, op)
570569
except pa.ArrowNotImplementedError:
571570
return invalid_comparison(self, other, op)
572-
if op == operator.ne:
573-
return result.to_numpy(np.bool_, na_value=True)
574-
else:
575-
return result.to_numpy(np.bool_, na_value=False)

0 commit comments

Comments
 (0)