[Numpy-discussion] how to get/set column

bernhard.voigt at gmail.com bernhard.voigt at gmail.com
Thu Nov 1 05:09:53 EDT 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... at 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... at scipy.orghttp://projects.scipy.org/mailman/listinfo/numpy-discussion

More information about the NumPy-Discussion mailing list