Dear all,
suppose I have a ndarray a:
In [66]: a
Out[66]: array([0, 1, 2, 3, 4])
how can use it as 5X1 array without doing a=a.reshape(5,1)?
thanks
Chao
--
***
Chao YUE
Laboratoire des Sciences du Climat et de
On 27. jan. 2012, at 14:52, Chao YUE wrote:
Dear all,
suppose I have a ndarray a:
In [66]: a
Out[66]: array([0, 1, 2, 3, 4])
how can use it as 5X1 array without doing a=a.reshape(5,1)?
Several ways, this is one, although not much simpler.
In [6]: a
Out[6]: array([0, 1, 2, 3, 4])
In
On Fri, Jan 27, 2012 at 9:28 AM, Paul Anton Letnes
paul.anton.let...@gmail.com wrote:
On 27. jan. 2012, at 14:52, Chao YUE wrote:
Dear all,
suppose I have a ndarray a:
In [66]: a
Out[66]: array([0, 1, 2, 3, 4])
how can use it as 5X1 array without doing a=a.reshape(5,1)?
Thanks all.
chao
2012/1/27 Tony Yu tsy...@gmail.com
On Fri, Jan 27, 2012 at 9:28 AM, Paul Anton Letnes
paul.anton.let...@gmail.com wrote:
On 27. jan. 2012, at 14:52, Chao YUE wrote:
Dear all,
suppose I have a ndarray a:
In [66]: a
Out[66]: array([0, 1, 2, 3, 4])
how can