pandas 1.4.2

NotesParameters

Notes

This method modifies the :None:None:`out` parameter rather than returning an object

Parameters

out : np.ndarray[np.intp]

Values into which this method will write its results.

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`.

sorted_labels : np.ndarray[np.intp]

obtained by :None:None:`np.argsort(labels, kind="mergesort")`; reversed if direction == "bfill"

values : np.ndarray[np.uint8]

Containing the truth value of each element.

mask : np.ndarray[np.uint8]

Indicating whether a value is na or not.

direction : {'ffill', 'bfill'}

Direction for fill to be applied (forwards or backwards, respectively)

limit : Consecutive values to fill before stopping, or -1 for no limit
dropna : Flag to indicate if NaN groups should return all NaN values

Indexes how to fill values forwards or backwards within a group.

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 'builtin_function_or_method'>
Commit: