-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: ExtensionBlock.set not setting values inplace #32831
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
does this need a whatsnew as your example IS user facing? if so, can you add in a followon |
yes, will do. @jreback two questions on In Block.setitem we have a check
It isn't clear why we need Second, the next check in Block.setitem is:
The non-obvious thing here is why we are over-writing |
@jbrockmendel this PR also had the consequence that
Setting a single column with getitem with extension arrays should IMO simply override the existing column / values. |
@jorisvandenbossche did you mean |
Indeed, |
In trying to figure out the difference between Block.set vs Block.setitem I found that ExtensionBlock.set is not inplace like it is supposed to be. Traced this back to a problem in CategoricalBlock.should_store, which this fixes+tests.
In separate passes I would like to