Numpy argsort - what is it doing?
Why is numpy giving this result:
x = numpy.array([1.48,1.41,0.0,0.1]) print x.argsort() >[2 3 1 0]
when I'd expect it to do this:
[3 2 0 1]
Clearly my understanding of the function is lacking.
According to the documentation
Returns the indices that would sort an array.
2is the index of
3is the index of
1is the index of
0is the index of