Series.
count
Return number of non-NA/null observations in the Series.
If the axis is a MultiIndex (hierarchical), count along a particular level, collapsing into a smaller Series.
Number of non-null values in the Series.
Examples
>>> s = pd.Series([0.0, 1.0, np.nan]) >>> s.count() 2