Return names ordered by ascending score
NumPy · from Sorting and searching
np.sortnp.argsortnp.argpartitionnp.searchsortednp.argmaxnp.digitizePutting the kettle on…
Starting up…
Exercise 2
Return names ordered by ascending score.
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.