We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fa6024 commit 1816902Copy full SHA for 1816902
pandas/core/arrays/string_arrow.py
@@ -1,6 +1,5 @@
1
from __future__ import annotations
2
3
-import operator
4
import re
5
from typing import (
6
TYPE_CHECKING,
@@ -566,10 +565,6 @@ class ArrowStringArrayNumpySemantics(ArrowStringArray):
566
565
567
def _cmp_method(self, other, op):
568
try:
569
- result = super()._cmp_method(other, op)
+ return super()._cmp_method(other, op)
570
except pa.ArrowNotImplementedError:
571
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