sort array, apply rearrangement to second

Victor Eijkhout see at sig.for.address
Wed Mar 31 14:58:03 EDT 2010


Robert Kern <robert.kern at gmail.com> wrote:

> second[first.argsort()]

Really cool. Thanks.

> Ask numpy questions on the numpy mailing list.

I will. I thought that this question would have an answer in a generic
python idiom.

Victor.
-- 
Victor Eijkhout -- eijkhout at tacc utexas edu



More information about the Python-list mailing list