Skip to content

Commit af8ad6d

Browse files
author
Khor Chean Wei
authored
Test case multiplying large series by NA (#45948)
* add test * Update test_values.py * update test case to another file * Update test_values.py * update test case to another file * Update test_arithmetic.py * change construct
1 parent 1c09a5d commit af8ad6d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pandas/tests/arrays/integer/test_arithmetic.py

+9
Original file line numberDiff line numberDiff line change
@@ -314,3 +314,12 @@ def test_unary_int_operators(any_signed_int_ea_dtype, source, neg_target, abs_ta
314314
tm.assert_extension_array_equal(pos_result, arr)
315315
assert not tm.shares_memory(pos_result, arr)
316316
tm.assert_extension_array_equal(abs_result, abs_target)
317+
318+
319+
def test_values_multiplying_large_series_by_NA():
320+
# GH#33701
321+
322+
result = pd.NA * pd.Series(np.zeros(10001))
323+
expected = pd.Series([pd.NA] * 10001)
324+
325+
tm.assert_series_equal(result, expected)

0 commit comments

Comments
 (0)