[SciPy-user] Element ranks for an array

R. Padraic Springuel R.Springuel@umit.maine....
Tue Nov 6 17:49:56 CST 2007

Does scipy have a function that can provide the element ranks by size 
for a 1-d array?

I.e. a function that would return [3,4,2,1] or [2,1,3,4] (depending on 
ascending or descending ranking) for array([50, 10, 62, 1000]).

R. Padraic Springuel
Teaching Assistant
Department of Physics and Astronomy
University of Maine
Bennett 309
Office Hours: By appointment only

More information about the SciPy-user mailing list