-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: Series/Frame invert dtypes #31183
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
Fixes NDFrame.__invert__ to preserve dtypes. Noatably * Dispatches to extension arrays * Applies blockwise to avoid upcasting to a common dtype
Co-Authored-By: Joris Van den Bossche <[email protected]>
Co-Authored-By: Joris Van den Bossche <[email protected]>
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.
small comment
All green. |
thanks @TomAugspurger |
@meeseeksdev backport to 1.0.x |
Owee, I'm MrMeeseeks, Look at me. There seem to be a conflict, please backport manually. Here are approximate instructions:
And apply the correct labels and milestones. Congratulation you did some good work ! Hopefully your backport PR will be tested by the continuous integration and merged soon! If these instruction are inaccurate, feel free to suggest an improvement. |
Co-authored-by: Tom Augspurger <[email protected]>
Fixes NDFrame.invert to preserve dtypes by applying things blockwise. Notably, this fixes
~Series[BooleanDtype]
.This also provides a pattern for other unary ops, though I think that those are less pressing for 1.0, which should probably have a working
~Series[BooleanDtype]
cc @jorisvandenbossche