arr = np.array([1, 2, 3, 4, 5, 6, 7, 8]) # size = (1, 8) newArr = arr.reshape((2, 4)) # size = (2, 4)