Skip to content

Add references to isnull in notnull docs and vice versa #6458

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
Feb 24, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions pandas/core/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ def isnull(obj):
isnulled : array-like of bool or bool
Array or bool indicating whether an object is null or if an array is
given which of the element is null.

See also
--------
pandas.notnull: boolean inverse of pandas.isnull
"""
return _isnull(obj)

Expand Down Expand Up @@ -268,6 +272,10 @@ def notnull(obj):
isnulled : array-like of bool or bool
Array or bool indicating whether an object is *not* null or if an array
is given which of the element is *not* null.

See also
--------
pandas.isnull : boolean inverse of pandas.notnull
"""
res = isnull(obj)
if np.isscalar(res):
Expand Down
8 changes: 8 additions & 0 deletions pandas/core/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -2545,12 +2545,20 @@ def interpolate(self, method='linear', axis=0, limit=None, inplace=False,
def isnull(self):
"""
Return a boolean same-sized object indicating if the values are null

See also
--------
notnull : boolean inverse of isnull
"""
return isnull(self).__finalize__(self)

def notnull(self):
"""Return a boolean same-sized object indicating if the values are
not null

See also
--------
isnull : boolean inverse of notnull
"""
return notnull(self).__finalize__(self)

Expand Down