A RetroSearch Logo

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

Search Query:

Showing content from https://pandas.pydata.org/pandas-docs/stable/reference/api/../api/pandas.Series.argsort.html below:

pandas.Series.argsort — pandas 2.3.1 documentation

pandas.Series.argsort#
Series.argsort(axis=0, kind='quicksort', order=None, stable=None)[source]#

Return the integer indices that would sort the Series values.

Override ndarray.argsort. Argsorts the value, omitting NA/null values, and places the result in the same locations as the non-NA values.

Parameters:
axis{0 or ‘index’}

Unused. Parameter needed for compatibility with DataFrame.

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

Choice of sorting algorithm. See numpy.sort() for more information. ‘mergesort’ and ‘stable’ are the only stable algorithms.

orderNone

Has no effect but is accepted for compatibility with numpy.

stableNone

Has no effect but is accepted for compatibility with numpy.

Returns:
Series[np.intp]

Positions of values within the sort order with -1 indicating nan values.

Examples

>>> s = pd.Series([3, 2, 1])
>>> s.argsort()
0    2
1    1
2    0
dtype: int64

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