-
Notifications
You must be signed in to change notification settings - Fork 915
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
Move some misc Frame methods to appropriate locations #15963
Conversation
python/cudf/cudf/core/frame.py
Outdated
@@ -1918,6 +1873,17 @@ def __copy__(self): | |||
@_cudf_nvtx_annotate | |||
def __invert__(self): | |||
"""Bitwise invert (~) for integral dtypes, logical NOT for bools.""" | |||
|
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.
Can we define _apply_inverse_column
outside of this __invert__
separately? That way we will not keep re-defining this method when __invert__
is invoked.
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.
You gave me the idea to define __invert__
on the Column
so we can avoid this helper all together
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.
Thanks!
/merge |
Description
Frame._is_sorted
toMultiIndex._is_sorted
(the only class that uses this method)_apply_inverse_column
helper function to defineColumn.__invert__
Checklist