[Numpy-discussion] how to cite 1Xn array as nX1 array?

Chao YUE chaoyuejoy@gmail....
Fri Jan 27 07:52:55 CST 2012


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 l'Environnement (LSCE-IPSL)
UMR 1572 CEA-CNRS-UVSQ
Batiment 712 - Pe 119
91191 GIF Sur YVETTE Cedex
Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16
************************************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20120127/a118b884/attachment.html 


More information about the NumPy-Discussion mailing list