[Numpy-discussion] What am I missing about concatenate?

Alan G Isaac aisaac at american.edu
Thu Jun 1 11:45:05 CDT 2006


On Thu, 01 Jun 2006, Christopher Barker apparently wrote: 
> Is this the best I can do? 
>  >>> N.concatenate(((1,2),(3,4))).reshape(2,2) 
> array([[1, 2], 
>         [3, 4]]) 





>>> import numpy as N
>>> N.vstack([(1,2),(3,4)])
array([[1, 2],
       [3, 4]])

hth,
Alan Isaac







More information about the Numpy-discussion mailing list