[Numpy-discussion] array manipulation

Alex Ter-Sarkissov ater1980 at gmail.com
Tue Aug 17 00:13:07 EDT 2010


hi, this is probably a very silly question, but I can't get my hear
around it unfortunately(

I have an array (say, mat=rand(3,5)) from which I 'pull out' a row
(say, s1=mat[1,]). The problem is, the shape of this row s1 is not
[1,5], as I would expect, but rather [5,], which means that I can't,
for example, concateante mat and s1 rowwise.

thanks for the help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20100817/e152c400/attachment.html>


More information about the NumPy-Discussion mailing list