[Numpy-discussion] is there a sortrows
David Cournapeau
david@ar.media.kyoto-u.ac...
Sun Dec 21 21:19:44 CST 2008
josef.pktd@gmail.com wrote:
>> I may miss something obvious, but why are you using lexsort at all ? At
>> leat, the first example is easily achieved with sort(x, axis=0) - but
>> maybe you have more complicated examples in mind where you need actual
>> lexical sort:
>>
>> David
>>
>
> >From the examples that I tried out np.sort, sorts each column
> separately (with axis = 0). If the elements of a row is supposed to
> stay together, then np.sort doesn't work.
>
You're right, as Robert just mentioned, I totally missed the point of
your example...
David
More information about the Numpy-discussion
mailing list