Skip to content

pandas.notnull documentation showing code examples from pandas.notna #41855

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

Closed
jenkc opened this issue Jun 7, 2021 · 4 comments · Fixed by #45071
Closed

pandas.notnull documentation showing code examples from pandas.notna #41855

jenkc opened this issue Jun 7, 2021 · 4 comments · Fixed by #45071
Assignees
Labels
Docs Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate
Milestone

Comments

@jenkc
Copy link

jenkc commented Jun 7, 2021

The code examples are from the previous page in the documentation. Need examples for using notnull please.
Thanks!

https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.notnull.html

@mzeitlin11
Copy link
Member

Thanks for pointing this out @jenkc! This happens because notnull is purely just an alias for notna (the same problem exists for isnull, and the associated Series/DataFrame methods). To avoid duplicating examples, I'd guess some of the shared doc machinery could be used to generalize over isna/isnull and notna/notnull

@mzeitlin11 mzeitlin11 added Docs Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate labels Jun 7, 2021
@mzeitlin11 mzeitlin11 added this to the Contributions Welcome milestone Jun 7, 2021
@jenkc
Copy link
Author

jenkc commented Jun 7, 2021

Thanks for the clarification! Was trying to use these for the first time and did not know that notnull and isnull are aliases.

@simonjayhawkins
Copy link
Member

Thanks for pointing this out @jenkc! This happens because notnull is purely just an alias for notna (the same problem exists for isnull, and the associated Series/DataFrame methods). To avoid duplicating examples, I'd guess some of the shared doc machinery could be used to generalize over isna/isnull and notna/notnull

or maybe add a basic docstring to the alias to let users know it's an alias and link to the other.

@koukyo1994
Copy link

take

@jreback jreback modified the milestones: Contributions Welcome, 1.4 Dec 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Docs Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants