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 e36fb90 commit 47c4474Copy full SHA for 47c4474
pandas/core/arrays/arrow/array.py
@@ -149,9 +149,15 @@ def floordiv_compat(
149
result = pc.if_else(
150
pc.and_(
151
has_remainder,
152
- pc.less(
153
- pc.bit_wise_xor(left, right),
154
- pa.scalar(0, type=divided.type),
+ pa.compute.xor(
+ pa.compute.less(
+ left,
155
+ pa.scalar(0, type=left.type),
156
+ ),
157
158
+ right,
159
+ pa.scalar(0, type=right.type),
160
161
),
162
163
# GH 55561: floordiv should round towards negative infinity.
0 commit comments