pyspark.pandas.Index.isna

Index.isna() → IndexOpsLike

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, gets mapped to True values. Everything else gets mapped to False values. Characters such as empty strings ‘’ or numpy.inf are not considered NA values (unless you set pandas.options.mode.use_inf_as_na = True).

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='object', name='a')