Your name explains this - the 1st array does not have a 2nd axis!
But, having said that, on my system, as on @Oliver W. s, it does not cause an error
In [655]: np.concatenate((t1,t2),axis=1) Out[655]: array([ 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19])
This is the result I would expect from axis=0 :
In [656]: np.concatenate((t1,t2),axis=0) Out[656]: array([ 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19])
It seems concatenate ignoring the axis parameter when arrays are 1d. I do not know if it was something new in my version 1.9 or something old.
For more control, consider using the vstack and hstack , which expand the size of the array if necessary:
In [657]: np.hstack((t1,t2)) Out[657]: array([ 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19]) In [658]: np.vstack((t1,t2)) Out[658]: array([[ 1, 2, 3, 4, 5, 6, 7, 8, 9], [11, 12, 13, 14, 15, 16, 17, 18, 19]])