Thanks Josef, you're right.
Could you explain me what's the difference between
In [4]: a=np.arange(10)
In [5]: a.shape
Out[5]: (10,)
and
In [6]: a=np.arange(10).reshape(10,1)
In [7]: a.shape
Out[7]: (10, 1)
(10) means the first a is only a one-dimensional ndarray, but the (10,1)
means the
Dear all,
I use numpy version 1.5.1 which is installed by default when I do sudo
apt-get install numpy on ubuntu 11.04.
but it seems that for np.ma.concatenate(arrays, axis), the axis parameter is
not working?
In [460]: a=np.arange(10)
In [461]: a=np.ma.masked_array(a,a3)
In [462]: a
Out[462]:
On Thu, Oct 13, 2011 at 1:17 PM, Chao YUE chaoyue...@gmail.com wrote:
Dear all,
I use numpy version 1.5.1 which is installed by default when I do sudo
apt-get install numpy on ubuntu 11.04.
but it seems that for np.ma.concatenate(arrays, axis), the axis parameter is
not working?
In [460]: