pandas 1.4.2

ParametersReturnsBackRef
argsort(self, ascending: 'bool' = True, kind: 'str' = 'quicksort', na_position: 'str' = 'last', *args, **kwargs) -> 'np.ndarray'

Parameters

ascending : bool, default True

Whether the indices should result in an ascending or descending sort.

kind : {'quicksort', 'mergesort', 'heapsort', 'stable'}, optional

Sorting algorithm.

*args, **kwargs: :

Passed through to numpy.argsort .

Returns

np.ndarray[np.intp]

Array of indices that sort self . If NaN values are contained, NaN values are placed at the end.

Return the indices that would sort this array.

See Also

numpy.argsort

Sorting implementation used internally.

Examples

See :

Back References

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

pandas.core.arrays.base.ExtensionArray._values_for_argsort pandas.core.arrays.integer.IntegerArray._values_for_argsort pandas.core.arrays.boolean.BooleanArray._values_for_argsort

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/arrays/base.py#635
type: <class 'function'>
Commit: