Hi,

Is there a direct or indirect way in numpy to compute the sample ranks of a
given array, i.e. the equivalent of rank() in R.

I am looking for:
rank(array([6,8,4,1,9])) -> array([2,3,1,0,4])

Is there some clever use of argsort() that I am missing?

Thanks,
Abhi


_______________________________________________
Numpy-discussion mailing list
[email protected]
http://projects.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to