[Numpy-discussion] yet another trivial question
Fri Nov 2 14:54:33 CDT 2012
On Fri, Nov 2, 2012 at 2:18 PM, Neal Becker <firstname.lastname@example.org> wrote:
> I'm trying to convert some matlab code. I see this:
> AFAICT, this removes the first element of the array, shifting the others.
> What is the preferred numpy equivalent?
Perhaps np.delete is what you're looking for. (Esp. if you have
multiple items to remove like this, or want to remove something
besides the first element in the array.)
More information about the NumPy-Discussion