[Numpy-discussion] deleting value from array
Wed Aug 15 05:11:59 CDT 2007
Yeah, I can see the copying is essential.
I just think the syntax
a = delete(a,1)
confusing, as I would expect the deleted value back, rather than the
As in the 'pop' function for lists.
No 'pop' in numpy? (I presume this may have been debated extensively
in the past).
I find the syntax
a.delete(1) more logical.
On Aug 15, 11:19 am, "Matthieu Brucher" <matthieu.bruc...@gmail.com>
> > I now get the feeling the delete command needs to copy the entire
> > array with exception of the deleted item. I guess this is a hard thing
> > to do efficiently?
> Well, if you don't copy the array, the value will always remain present.
> Numpy-discussion mailing list
More information about the Numpy-discussion