Skip to content

TST: GH32822 data types in frame manip #46836

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jun 3, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions pandas/tests/frame/test_arithmetic.py
Original file line number Diff line number Diff line change
Expand Up @@ -2007,6 +2007,15 @@ def test_bool_frame_mult_float():
tm.assert_frame_equal(result, expected)


def test_frame_sub_nullable_int(any_int_dtype):
# GH 32822
series1 = Series([1, 2, np.nan], dtype=any_int_dtype)
series2 = Series([1, 2, 3], dtype=any_int_dtype)
expected = DataFrame([0, 0, np.nan], dtype=any_int_dtype)
result = series1.to_frame() - series2.to_frame()
tm.assert_frame_equal(result, expected)


def test_frame_op_subclass_nonclass_constructor():
# GH#43201 subclass._constructor is a function, not the subclass itself

Expand Down