These are chat archives for numpy/numpy

Dec 2016
Richard Otis
Dec 05 2016 17:53
@Ben-Kobby Try np.concatenate((A,B), axis=1)
The axis=1 is the key part there
Dec 05 2016 18:03
@richardotis , is that preferred over np.append(A,B,axis=1)?
Richard Otis
Dec 05 2016 21:47
@brianvanleeuwen They have the same semantics with the axis argument as far as I can tell. Both perform copies. The only difference seems to be what happens if you don't specify axis: it defaults to axis 0 for concatenate while append will flatten both arrays
Good to hear from you by the way, hope you're doing well