[Numpy-discussion] obtain indexes of a sort ?

Pierre GM pgmdevlist at mailcan.com
Wed Apr 26 16:45:02 EDT 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