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 167507e commit df9d27aCopy full SHA for df9d27a
pandas/core/arrays/arrow/array.py
@@ -152,9 +152,6 @@ def floordiv_compat(
152
pc.subtract(divided, pa.scalar(1, type=divided.type)),
153
divided,
154
)
155
- # Ensure compatibility with older versions of pandas where
156
- # int8 // int64 returned int8 rather than int64.
157
- result = result.cast(left.type)
158
else:
159
# Use divide instead of divide_checked to match numpy
160
# floordiv where divide by 0 returns infinity for floating
0 commit comments