Re:Array Languages vs. the Curse of the Spreadsheet
by amluto on Wednesday March 06, 2024 @10:23AM
(#39616910)
That’s why I said argsort :)
https://numpy.org/doc/stable/reference/generated/numpy.argso...
I assume this name derives from argmin and argmax, which go back at least to MATLAB. But MATLAB has sort returning indices too.
You can read more about it here if you're interested: https://www.aplwiki.com/wiki/Grade
And here's a silly example where a random array is created, then an array lookup is performed on the sorted indexes:
https://kapdemo.dhsdevelopments.com/clientweb2/#a%20%E2%86%9...