pandas 1.4.2

ParametersReturnsBackRef
count(self, level=None)

Parameters

level : int or level name, default None

If the axis is a MultiIndex (hierarchical), count along a particular level, collapsing into a smaller Series.

Returns

int or Series (if level specified)

Number of non-null values in the Series.

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

See Also

DataFrame.count

Count non-NA cells for each column or row.

Examples

This example is valid syntax, but we were not able to check execution
>>> s = pd.Series([0.0, 1.0, np.nan])
... s.count() 2
See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

pandas.core.base.IndexOpsMixin.nunique pandas.core.window.expanding.Expanding.count pandas.core.frame.DataFrame.count pandas.core.base.IndexOpsMixin.value_counts pandas.core.window.rolling.Rolling.count

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /pandas/core/series.py#1940
type: <class 'function'>
Commit: