[Numpy-discussion] howto make from flat array (1-dim) 2-dimensional?
Christopher Barker
Chris.Barker at noaa.gov
Mon May 14 14:37:05 EDT 2007
or:
a=array([1,2,3]).reshape((-1,1))
Darn, I guess there is more than one obvious way to do it!
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
More information about the NumPy-Discussion
mailing list