pandas and NumPy 3 · NumPy

Sort and find positions

Sort values, or get the indices that would sort them.

np.sort(a)
np.argsort(a)

Official pandas and NumPy 3 documentation

More numpy commands

All numpy commands · pandas and NumPy 3 cheatsheet

Was this page helpful?