Skip to content

Commit 888c8ea

Browse files
committed
Merge pull request #6458 from qwhelan/notnull_doc
Add references to isnull in notnull docs and vice versa
2 parents f0dcb5c + 19f19f8 commit 888c8ea

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

pandas/core/common.py

+8
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ def isnull(obj):
121121
isnulled : array-like of bool or bool
122122
Array or bool indicating whether an object is null or if an array is
123123
given which of the element is null.
124+
125+
See also
126+
--------
127+
pandas.notnull: boolean inverse of pandas.isnull
124128
"""
125129
return _isnull(obj)
126130

@@ -268,6 +272,10 @@ def notnull(obj):
268272
isnulled : array-like of bool or bool
269273
Array or bool indicating whether an object is *not* null or if an array
270274
is given which of the element is *not* null.
275+
276+
See also
277+
--------
278+
pandas.isnull : boolean inverse of pandas.notnull
271279
"""
272280
res = isnull(obj)
273281
if np.isscalar(res):

pandas/core/generic.py

+8
Original file line numberDiff line numberDiff line change
@@ -2545,12 +2545,20 @@ def interpolate(self, method='linear', axis=0, limit=None, inplace=False,
25452545
def isnull(self):
25462546
"""
25472547
Return a boolean same-sized object indicating if the values are null
2548+
2549+
See also
2550+
--------
2551+
notnull : boolean inverse of isnull
25482552
"""
25492553
return isnull(self).__finalize__(self)
25502554

25512555
def notnull(self):
25522556
"""Return a boolean same-sized object indicating if the values are
25532557
not null
2558+
2559+
See also
2560+
--------
2561+
isnull : boolean inverse of notnull
25542562
"""
25552563
return notnull(self).__finalize__(self)
25562564

0 commit comments

Comments
 (0)