[Numpy-discussion] np.concatenate and np.column_stack shouldn't they be the same?
John [H2O]
washakie@gmail....
Fri Jul 10 07:40:08 CDT 2009
Can someone explain:
x = np.arange(20)
y = np.arange(20)
z = np.vstack((x,y)).T
is equal to:
z = np.column_stack((x,y))
but this does not do the same:
z = np.concatenate((x,y),axis=0) # or with axis=1
Seems I should be able to use concatenate to make a column stack??
Thanks!
--
View this message in context: http://www.nabble.com/np.concatenate-and-np.column_stack-shouldn%27t-they-be-the-same--tp24426795p24426795.html
Sent from the Numpy-discussion mailing list archive at Nabble.com.
More information about the NumPy-Discussion
mailing list