-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
BUG: setitem with boolean mask and series as value is broken for Series with EA type #37676
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
Changes from 4 commits
b48c9da
6cf8b26
ee18953
22a6bff
88fe157
7bed804
b2efced
f471060
0fe21c6
dd8aed3
81d4d60
5eb5506
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
NaT, | ||
Series, | ||
Timestamp, | ||
array, | ||
date_range, | ||
period_range, | ||
) | ||
|
@@ -126,6 +127,13 @@ def test_setitem_boolean_different_order(self, string_series): | |
|
||
tm.assert_series_equal(copy, expected) | ||
|
||
def test_setitem_boolean_ea_type(self): | ||
# GH: 26468 | ||
s = Series(array([5, 6, 7, 8], dtype="Int64")) | ||
s[s > 6] = Series(range(4), dtype="Int64") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. generally looks good, couple of nitpicks: can you There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done, thanks for the tips |
||
expected = Series([5, 6, 2, 3], dtype="Int64") | ||
tm.assert_series_equal(s, expected) | ||
|
||
|
||
class TestSetitemViewCopySemantics: | ||
def test_setitem_invalidates_datetime_index_freq(self): | ||
|
Uh oh!
There was an error while loading. Please reload this page.