-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
REGR: Fix inplace updates on column to set correct values #35936
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 1 commit
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 | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -1027,6 +1027,8 @@ def iset(self, loc: Union[int, slice, np.ndarray], value): | |||||||||||||
Set new item in-place. Does not consolidate. Adds new Block if not | ||||||||||||||
contained in the current set of items | ||||||||||||||
""" | ||||||||||||||
if isinstance(value, ABCSeries): | ||||||||||||||
value = value._values | ||||||||||||||
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. @jbrockmendel I suppose ideally we ensure that Lines 3273 to 3278 in a1f6056
But: 1) I am not fully sure in which case this 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. re 2: I think iset is only called from 2 places in NDFrame. shouldnt be that hard to check unwrapping there, annotate iset 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. Yeah, 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. OK. I might do a follow-up to try to push the check earlier |
||||||||||||||
# FIXME: refactor, clearly separate broadcasting & zip-like assignment | ||||||||||||||
# can prob also fix the various if tests for sparse/categorical | ||||||||||||||
if self._blklocs is None and self.ndim > 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.
extract_array to handle Index too?