Skip to main content
`Ctrl`+`K`

# pandas.Series.hasnans

property Series.hasnans

  Return True if there are any NaNs.

  Enables various performance speedups.

  Returns:
    bool

  See also

  `Series.isna`

    Detect missing values.

  `Series.notna`

    Detect existing (non-missing) values.

  Examples

      >>> s = pd.Series([1, 2, 3, None])
      >>> s
      0    1.0
      1    2.0
      2    3.0
      3    NaN
      dtype: float64
      >>> s.hasnans
      True