array manipulation-

Robert Kern robert.kern at gmail.com
Mon Aug 16 23:58:33 EDT 2010


On 8/16/10 10:07 PM, Aram Ter-Sarkissov wrote:
> 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

You can ask numpy questions on the numpy mailing list.

   http://www.scipy.org/Mailing_Lists

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco




More information about the Python-list mailing list