how to get/set column
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
It's just the other way around: mymat[:,0] # first column mymat[:,1] # second column Take a look at the tutorial: http://scipy.org/Tentative_NumPy_Tutorial#head-864862d3f2bb4c32f04260fac61eb... 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
participants (2)
-
bernhard.voigt@gmail.com
-
dev new