pandas 1.4.2

NotesParameters

Notes

This method modifies the :None:None:`out` parameter rather than returning an object. :None:None:`counts` is modified to hold group sizes

Parameters

out : np.ndarray[floating]

Values into which this method will write its results.

counts : np.ndarray[int64]

A zeroed array of the same shape as labels, populated by group sizes during algorithm.

values : np.ndarray[floating]

2-d array of the values to find the mean of.

labels : np.ndarray[np.intp]

Array containing unique label for each group, with its ordering matching up to the corresponding record in :None:None:`values`.

min_count : Py_ssize_t

Only used in add and prod. Always -1.

is_datetimelike : bool

True if :None:None:`values` contains datetime-like entries.

mask : ndarray[bool, ndim=2], optional

Not used.

result_mask : ndarray[bool, ndim=2], optional

Not used.

Compute the mean per label given a label assignment for each value. NaN values are ignored.

Examples

See :

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: None#None
type: <class 'fused_cython_function'>
Commit: