Ben Fairbank <baf@texas.antispam.net> wrote:
> 
> I have a matrix with many rows(say 1000 to make this concrete) and a
> dozen or so columns.	One column has numbers ranging from 1 to
> several
> hundred.  I have to create a new column with numbers from 1 to 1000
> corresponding to the smallest to largest numbers (don't worry about
> ties (yet)) in the column of interest.  The new number thus indicate
> the ordinal or rank order of the values in the given column.	I have
> been futzing around with argsort, but cannot find an elegant fast way
> to do it.  Can a reader suggest?

Have a look to see how Gray Strangman's stats.py module does it (Google for it 
or find it in SciPy at http://www.scipy.org ) - in includes a number of 
nonparameteric tests, including ranksum, Wilcoxon T (MannWhitney U), Kruskal-
Wallis etc.

Tim C



