[SciPy-User] [scipy_user] How to keep only the x first terms of an 1D array?

Zachary Pincus zachary.pincus@yale....
Mon Jan 30 09:11:04 CST 2012


Same as a python list: arr[:x]

Or along other axes, arr[:,:x], etc.

Zach


On Jan 30, 2012, at 10:04 AM, Fabien Lafont wrote:

> Hello,
> 
> Do somebody knows how to keep only the x first terms of an array?
> 
> Fabien
> _______________________________________________
> SciPy-User mailing list
> SciPy-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user



More information about the SciPy-User mailing list