Run
import numpy as np arr1 = np.array([[1, 2], [3, 4]]) arr2 = np.array([[5, 6], [7, 8]]) arr3 = np.array([[9, 10],[11, 12]]) output = np.hstack((arr1, arr2, arr3)) print('array 1\n', arr1) print('array 2\n', arr2) print('array 3\n', arr3) print('stacking horizontally...\n', output)
Output