[Numpy-discussion] Please help me

dileep kunjaai dileepkunjaai@gmail....
Sun Mar 27 02:56:42 CDT 2011


Thank you sir thank you very much......
sir i got a new flexible command:

>>> delete(a, s_[1:3], axis=1)                       # remove columns 1 and 2
http://www.scipy.org/Numpy_Example_List#head-2413c07da8954330701674ff8e950c4505665be1


On Sun, Mar 27, 2011 at 1:18 PM, andrew nelson <andyfaff@gmail.com> wrote:

> I think A[:,0:2] should give you what you want.
>
> On 27/03/2011, at 6:24 PM, dileep kunjaai wrote:
>
> > Dear sir,
> >  Can we take a numpy array excluding particular columns
> > Example:
> > A=[[ 20.   71.   57.5]
> >  [ 21.   71.   56. ]
> >  [ 22.   71.   74.3]
> >  [ 23.   71.   66. ]
> >  [ 24.   71.   96.5]
> >  [ 25.   71.   61.7]
> >  [ 20.   72.   72.9]
> >  (Here i am give up the last column)
> >
> > The answer should be [[ 20.   71. ]
> >  [ 21.   71.  ]
> >  [ 22.   71.  ]
> >  [ 23.   71.  ]
> >  [ 24.   71.  ]
> >  [ 25.   71.  ]
> >  [ 20.   72.  ]
> >
> > Please help me ...............................
> >
> > --
> > DILEEPKUMAR. R
> > J R F, IIT DELHI
> >
> > _______________________________________________
> > NumPy-Discussion mailing list
> > NumPy-Discussion@scipy.org
> > http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
> _________________
> Dr Andrew Nelson
> andyfaff@gmail.com
> _________________
>
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>



-- 
DILEEPKUMAR. R
J R F, IIT DELHI
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20110327/3fe1fae9/attachment.html 


More information about the NumPy-Discussion mailing list