import numpy as np v1 = np.array([1, 2, 3, 4]) v2 = np.array([5, 6, 7, 8]) vstack = np.vstack([v1, v2]) print(vstack) hstack = np.hstack([v1, v2]) print(hstack)