10000 BUG: Array.__setitem__ failing with nullable boolean mask by charlesdong1991 · Pull Request #31484 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

BUG: Array.__setitem__ failing with nullable boolean mask #31484

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 20 commits into from
Feb 1, 2020
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
fixup
  • Loading branch information
charlesdong1991 committed Jan 31, 2020
commit 6554b49aec0a8e7f7a51d82a6edeaf240e4fedd3
4 changes: 2 additions & 2 deletions pandas/tests/extension/base/setitem.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,10 @@ def test_setitem_preserves_views(self, data):
assert view1[0] == data[1]
assert view2[0] == data[1]

def test_setitem_nullable_integer(self, data):
def test_setitem_nullable_mask(self, data):
# GH 31446
arr = data[:5]
expected = data.take([0, 0, 0, 3, 4])
mask = pd.array([True, True, True, False, False])
arr[mask] = arr[0]
arr[mask] = data[0]
self.assert_extension_array_equal(expected, arr)
0