[SciPy-user] Sort and N dimensional array by 1d array

Christopher Clarke cclarke@chrisdev....
Wed Feb 21 13:18:52 CST 2007


Er Yes!!

Embarrassing i just checked the code!!!
For some reason i  used axis=1 and getting crap so
i  kept thinking that there was something more eloborate
Thanks a lot
Regards
Chris

On 21 Feb 2007, at 15:08, Jouni K. Seppänen wrote:

> Christopher Clarke <cclarke@chrisdev.com> writes:
>
>> however for when i do
>> sc=take(c,ixs)
>> sc.shape=(5,) (i've lost the second column)
>
> Does take(c,ixs,axis=0) do what you want?
>
> -- 
> Jouni K. Seppänen
> http://www.iki.fi/jks
>
> _______________________________________________
> SciPy-user mailing list
> SciPy-user@scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-user



More information about the SciPy-user mailing list