Return scores sorted ascending, as a new array
NumPy · from Sorting and searching
np.sortnp.argsortnp.argpartitionnp.searchsortednp.argmaxnp.digitizePutting the kettle on…
Starting up…
Exercise 1
Return scores sorted ascending, as a new array.
your answer
stuck? the lesson behind it
Sorting and searching
argsort is the one that matters — it returns the order, so you can apply it anywhere.