[Numpy-discussion] how to get/set column

bernhard.voigt@gmai... bernhard.voigt@gmai...
Thu Nov 1 04:09:53 CDT 2007

It's just the other way around:
mymat[:,0]  # first column
mymat[:,1]  # second column

Take a look at the tutorial:

best! bernhard

On Nov 1, 7:22 am, "dev new" <dev...@gmail.com> wrote:
> is there a method for numpy arrays and matrices to get/set a particular
> column
> i know that a row can be fetched by mymat[1,:] etc
> can this be done for a column
> dn
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discuss...@scipy.orghttp://projects.scipy.org/mailman/listinfo/numpy-discussion

More information about the Numpy-discussion mailing list