Skip to content

Commit 47c4474

Browse files
author
Rohan Jain
committed
negative operand condition
1 parent e36fb90 commit 47c4474

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

pandas/core/arrays/arrow/array.py

+9-3
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,15 @@ def floordiv_compat(
149149
result = pc.if_else(
150150
pc.and_(
151151
has_remainder,
152-
pc.less(
153-
pc.bit_wise_xor(left, right),
154-
pa.scalar(0, type=divided.type),
152+
pa.compute.xor(
153+
pa.compute.less(
154+
left,
155+
pa.scalar(0, type=left.type),
156+
),
157+
pa.compute.less(
158+
right,
159+
pa.scalar(0, type=right.type),
160+
),
155161
),
156162
),
157163
# GH 55561: floordiv should round towards negative infinity.

0 commit comments

Comments
 (0)