-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
CLN: dont consolidate in indexing #34679
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 |
---|---|---|
|
@@ -1676,7 +1676,6 @@ def isetter(loc, v): | |
ser = v | ||
else: | ||
# set the item, possibly having a dtype change | ||
ser._consolidate_inplace() | ||
ser = ser.copy() | ||
ser._mgr = ser._mgr.setitem(indexer=pi, value=v) | ||
ser._maybe_update_cacher(clear=True) | ||
|
@@ -1788,7 +1787,6 @@ def isetter(loc, v): | |
self.obj._check_is_chained_assignment_possible() | ||
|
||
# actually do the set | ||
self.obj._consolidate_inplace() | ||
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. Removing this one will need a performance check, IMO, and also has potential API changes that might need investigation 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. I think this consolidation turns out to be redundant with the
I've been thinking about this, since the same issue came up on the last call w/r/t always-view column-indexing. It isn't clear to me what type/amount of "investigation" would satisfy this concern. Do you have something in mind? |
||
self.obj._mgr = self.obj._mgr.setitem(indexer=indexer, value=value) | ||
self.obj._maybe_update_cacher(clear=True) | ||
|
||
|
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.
this one is a no-op since
ser
is a series (I think?), so can easily be removedThere 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.
This is my thought too