Skip to content

Commit c2922e7

Browse files
committed
Filling nulls when it is arrow bit functions
1 parent 8c90b35 commit c2922e7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pandas/core/arrays/arrow/array.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -921,9 +921,10 @@ def _evaluate_op_method(self, other, op, arrow_funcs) -> Self:
921921

922922
try:
923923
if HAS_PYARROW:
924-
if pa.types.is_boolean(self._pa_array.type):
925-
other = pc.fill_null(other, False)
926-
self._pa_array = pc.fill_null(self._pa_array, False)
924+
if op.__name__ in ARROW_BIT_WISE_FUNCS:
925+
if pa.types.is_boolean(self._pa_array.type):
926+
other = pc.fill_null(other, False)
927+
self._pa_array = pc.fill_null(self._pa_array, False)
927928

928929
result = pc_func(self._pa_array, other)
929930
except pa.ArrowNotImplementedError as err:

0 commit comments

Comments
 (0)