[SciPy-User] noob Needs guru for array manipulation

Jean-Baptiste BUTET ashashiwa at gmail.com
Sun Dec 11 07:15:51 EST 2011


Hi all :)

I have this array :
[[  0.00000000e+00 ,  2.26757370e-05  , 4.53514739e-05 ,   2.27548753e+00
, 2.27551020e+00  , 2.27553288e+00]
 [ -1.38700000e+03  , -1.51300000e+03 , -1.52600000e+03 ,
3.39000000e+02,  1.11000000e+02   0.00000000e+00]

I would like to remove couples where results in 2nd row are under 120 :

[[  0.00000000e+00 ,  2.26757370e-05  , 4.53514739e-05 ,
2.27548753e+00    , 2.27553288e+00]
 [ -1.38700000e+03  , -1.51300000e+03 , -1.52600000e+03 ,
3.39000000e+02,     0.00000000e+00

I don't really understand numpy array philosophia... so I need help here :)

Thanks.

JB
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20111211/f31df8b1/attachment.html>


More information about the SciPy-User mailing list