A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://pandas.pydata.org/docs/reference/api/pandas.api.extensions.ExtensionArray.argsort.html below:

pandas.api.extensions.ExtensionArray.argsort — pandas 2.3.1 documentation

pandas.api.extensions.ExtensionArray.argsort#
ExtensionArray.argsort(*, ascending=True, kind='quicksort', na_position='last', **kwargs)[source]#

Return the indices that would sort this array.

Parameters:
ascendingbool, default True

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

kind{‘quicksort’, ‘mergesort’, ‘heapsort’, ‘stable’}, optional

Sorting algorithm.

na_position{‘first’, ‘last’}, default ‘last’

If 'first', put NaN values at the beginning. If 'last', put NaN values at the end.

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

Examples

>>> arr = pd.array([3, 1, 2, 5, 4])
>>> arr.argsort()
array([1, 2, 0, 4, 3])

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4