Skip to content

REF: DataFrame.isna internals access #33124

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

Merged
merged 1 commit into from
Mar 30, 2020

Conversation

jbrockmendel
Copy link
Member

No description provided.

@@ -4478,19 +4478,20 @@ def _maybe_casted_values(index, labels=None):

@Appender(_shared_docs["isna"] % _shared_doc_kwargs)
def isna(self) -> "DataFrame":
return super().isna()
result = self._constructor(self._data.isna(func=isna))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be isna or isna_old depending on the settings?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(and since that is handled in the isna function, I am not fully sure it will be easier to do it here)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be isna or isna_old depending on the settings?

No, the _isna/_isna_old is reflected in isna

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I missed that. So it's basically calling that recursively on its parts. OK!

@jreback jreback added the Internals Related to non-user accessible pandas implementation label Mar 30, 2020
@jreback jreback added this to the 1.1 milestone Mar 30, 2020
@jreback jreback merged commit 7c1d7b3 into pandas-dev:master Mar 30, 2020
@jbrockmendel jbrockmendel deleted the ref-frame-isna branch March 30, 2020 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Internals Related to non-user accessible pandas implementation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants