Skip to content

Commit df9d27a

Browse files
author
Rohan Jain
committed
remove cast
1 parent 167507e commit df9d27a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pandas/core/arrays/arrow/array.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,6 @@ def floordiv_compat(
152152
pc.subtract(divided, pa.scalar(1, type=divided.type)),
153153
divided,
154154
)
155-
# Ensure compatibility with older versions of pandas where
156-
# int8 // int64 returned int8 rather than int64.
157-
result = result.cast(left.type)
158155
else:
159156
# Use divide instead of divide_checked to match numpy
160157
# floordiv where divide by 0 returns infinity for floating

0 commit comments

Comments
 (0)