j
k
j a
j l
On 01/27/2012 02:52 PM, 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)?
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)?
a[:, np.newaxis] a[:, None] np.newaxis is None Dag
Back to the thread
Back to the list