Skip to content

Commit

Permalink
Test case multiplying large series by NA (pandas-dev#45948)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
Khor Chean Wei authored Feb 22, 2022
1 parent 1c09a5d commit af8ad6d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pandas/tests/arrays/integer/test_arithmetic.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,3 +314,12 @@ def test_unary_int_operators(any_signed_int_ea_dtype, source, neg_target, abs_ta
tm.assert_extension_array_equal(pos_result, arr)
assert not tm.shares_memory(pos_result, arr)
tm.assert_extension_array_equal(abs_result, abs_target)


def test_values_multiplying_large_series_by_NA():
# GH#33701

result = pd.NA * pd.Series(np.zeros(10001))
expected = pd.Series([pd.NA] * 10001)

tm.assert_series_equal(result, expected)

0 comments on commit af8ad6d

Please sign in to comment.