Series.count(self, level=None) [source]
Return number of non-NA/null observations in the Series.
| Parameters: |
|
|---|---|
| Returns: |
|
>>> s = pd.Series([0.0, 1.0, np.nan]) >>> s.count() 2
© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/0.25.0/reference/api/pandas.Series.count.html