sort array, apply rearrangement to second

Steve Holden steve at holdenweb.com
Wed Mar 31 15:22:26 EDT 2010


Victor Eijkhout wrote:
> 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.

Not an unreasonable assumption, but it turns out that for most Python
users (estimate PFTA: 97%) numpy/scipt is esoteric knowledge.
regards
 Steve
-- 
Steve Holden +1 571 484 6266 +1 800 494 3119
See PyCon Talks from Atlanta 2010 http://pycon.blip.tv/
Holden Web LLC http://www.holdenweb.com/
UPCOMING EVENTS: http://holdenweb.eventbrite.com/


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /