[Numpy-discussion] yet another trivial question

Neal Becker ndbecker2 at gmail.com
Fri Nov 2 10:18:32 EDT 2012

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?

I'm not sure if

b[:] = b[1:]

is safe or not

More information about the NumPy-Discussion mailing list