-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
[ArrayManager] Indexing - implement iset #39734
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
[ArrayManager] Indexing - implement iset #39734
Conversation
@@ -659,24 +659,50 @@ def idelete(self, indexer): | |||
|
|||
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 | |||
Set new column in-place (replaces (an) existing column(s)). |
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.
I think this is specifically not-inplace.
This will behave differently from the BlockManager implementation. We should test and/or explicitly comment on that.
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.
I mean that it changes the ArrayManager in place (it doesn't return a new ArrayManager). I think that's the same as BlockManager?
For the rest, it replaces the array for a column, so yet it explicitly not-inplace from the array point of view, as it just gets swapped.
Will try to improve the comment.
lgtm. @jbrockmendel |
LGTM |
xref #39146, follow-up on #39722