stack(), hstack(), vstack() (NumPy)

These functions combine arrays: np.stack joins them along a brand-new axis, while np.hstack stacks horizontally (column-wise) and np.vstack stacks vertically…