pandas.api.extensions.ExtensionArray.count#
- ExtensionArray.count()[source]#
Count the number of non-NA values in the array.
This method returns the number of elements in the
ExtensionArraythat are not missing (i.e., not NA/null).- Returns:
- scalar
Number of non-NA values in the Series.
See also
Series.countCount the number of non-NA values in a Series.
Examples
>>> s = pd.array([1, pd.NA, 3]) >>> s.count() np.int64(2)