Skip to main content
`Ctrl`+`K`

# pandas.Series.notna

Series.notna()

  Detect existing (non-missing) values.

  Return a boolean same-sized Series indicating if the values are not NA. Non-missing values get mapped to True. Characters such as empty strings `''` or `numpy.inf` are not considered NA values. NA values, such as None or `numpy.NaN`, get mapped to False values.

  Returns:
    Series

      Mask of bool values for each element in Series that indicates whether an element is not an NA value.

  See also

  `Series.isna`

    Detect missing values.

  `DataFrame.isna`

    Detect missing values.

  `Series.isnull`

    Alias of isna.

  `DataFrame.isnull`

    Alias of isna.

  `DataFrame.notna`

    Boolean inverse of isna.

  `DataFrame.notnull`

    Alias of notna.

  `Series.dropna`

    Omit axes labels with missing values.

  `DataFrame.dropna`

    Omit axes labels with missing values.

  `notna`

    Top-level notna.

  Examples

  Show which entries in a Series are not NA.

      >>> ser = pd.Series([5, 6, np.nan])
      >>> ser
      0    5.0
      1    6.0
      2    NaN
      dtype: float64
      >>> ser.notna()
      0     True
      1     True
      2    False
      dtype: bool