[Numpy-discussion] obtain indexes of a sort ?

Pierre GM pgmdevlist at mailcan.com
Wed Apr 26 16:45:02 CDT 2006


On Wednesday 26 April 2006 19:40, Simon Burton wrote:
> Is it possible to obtain a permutation (array of indices)
> representing the transform that sorts an array ? Is there a numpy way
> of doing this ?

I guess argsort() could be what you want




More information about the Numpy-discussion mailing list