-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: broadcasting listlike values in Series.__setitem__ GH#44265 #44275
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
Conversation
@jreback following this we can get rid of both putmask_preserve and putmask_without_repeat |
can you rebase |
rebased + greenish |
@@ -309,7 +307,17 @@ def test_broadcast(size, mask, item, box): | |||
) | |||
|
|||
s = Series(data) | |||
s[selection] = box(item) | |||
|
|||
if selection.sum() != 1: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm maybe make this another test
it's really confusing u r boxing first then setting it after
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure, updated
updated + greenish |
lgtm @phofl if you can have a look |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
thx @jbrockmendel |
This should in turn allow us to avoid some special-casing that we do in internals/putmask_smart.
Sits on top of #44261