[Numpy-discussion] Please help me
andrew nelson
andyfaff at gmail.com
Sun Mar 27 03:48:46 EDT 2011
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 at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
_________________
Dr Andrew Nelson
andyfaff at gmail.com
_________________
More information about the NumPy-Discussion
mailing list