Skip to main content
`Ctrl`+`K`

# pandas.Series.count

Series.count()

  Return number of non-NA/null observations in the Series.

  This method counts the number of elements that are not missing (i.e., not NaN or None) in the Series.

  Returns:
    int

      Number of non-null values in the Series.

  See also

  `DataFrame.count`

    Count non-NA cells for each column or row.

  Examples

      >>> s = pd.Series([0.0, 1.0, np.nan])
      >>> s.count()
      2