I feel like there is some documentation I am missing, but I can\'t find anything on this specific example - everything is just about concatenating or stacking arrays.
I
If you have two-dimensional matrices, you can use numpy.dstack():
z = np.dstack((x, y))