[Numpy-discussion] Deleting a row from a matrix

Keith Goodman kwgoodman at gmail.com
Fri Aug 25 18:47:00 CDT 2006


On 8/25/06, Travis Oliphant <oliphant.travis at ieee.org> wrote:

> I've come up with adding the functions (not methods at this point)
>
> deletefrom
> insertinto
>
> appendto  (syntatic sugar for concatenate but with a separate argument
> for the array and the extra stuff) --- is this needed?
>
> These functions will operate along a particular axis (default is axis=0
> to match concatenate).

It is probably obvious to everyone except me: what is the syntax?

If x is 5x5 and I want to delete rows 2 and 4 is it deletfrom(x, [1,3], axis=0)?




More information about the Numpy-discussion mailing list