pyspark.pandas.Index.isnull#

Index.isnull()#

Detect existing (non-missing) values.

Return a boolean same-sized object indicating if the values are NA. NA values, such as None or numpy.NaN, get mapped to True values. Everything else gets mapped to False values. Characters such as empty strings ‘’ or numpy.inf are not considered NA values

Returns
Series or IndexMask of bool values for each element in Series

that indicates whether an element is not an NA value.

Examples

>>> ser = ps.Series([5, 6, np.NaN])
>>> ser.isna()  
0    False
1    False
2     True
dtype: bool
>>> ser.rename("a").to_frame().set_index("a").index.isna()  
Index([False, False, True], dtype='bool', name='a')