-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
REF: move methods from base to Index #52447
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
I've merged #52428, so I think this should be rebased to avoid merge issues here. |
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 return ndframe.method(self, ...)
be replaced with return super().method(...)
for many methods here?
@doc(NDFrame.isna, klass=_shared_doc_kwargs["klass"]) # type: ignore[has-type] | ||
def isna(self) -> Series: # type: ignore[override] | ||
def isna(self) -> Series: | ||
return NDFrame.isna(self) |
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.
return super().isna()
?
Same question below.
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.
avoiding super bc i always have to check which parent class it refers to
Thanks @jbrockmendel |
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.