dask.dataframe.Series.count

dask.dataframe.Series.count

Series.count(split_every=False)[source]

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

This docstring was copied from pandas.core.series.Series.count.

Some inconsistencies with the Dask version may exist.

Returns
int or Series (if level specified)

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