Skip to content

Commit 2966932

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

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pandas/tests/extension/test_arrow.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3261,6 +3261,15 @@ def test_arrow_floordiv_larger_divisor():
32613261
tm.assert_series_equal(result, expected)
32623262

32633263

3264+
def test_arrow_floordiv_common_type():
3265+
# GH 55561
3266+
a = pd.Series([-128], dtype="int8[pyarrow]")
3267+
b = pd.Series([-1], dtype="int64[pyarrow]")
3268+
expected = pd.Series([128], dtype="int64[pyarrow]")
3269+
result = a // b
3270+
tm.assert_series_equal(result, expected)
3271+
3272+
32643273
def test_arrow_floordiv_integral_invalid():
32653274
# GH 56676
32663275
a = pd.Series([-9223372036854775808], dtype="int64[pyarrow]")

0 commit comments

Comments
 (0)