Run
import numpy as np # reshape (3, 4) array to (6, 2) arr = np.array([[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12]]) shape = (6, 2) output = np.reshape(arr, shape) print(output)
Output