Run
import numpy as np array1 = np.array([[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12]]) array2 = np.array([[13, 14], [15, 16], [17, 18]]) output = np.concatenate((array1, array2), axis=1) print(output)
Output