Let\'s say I have this array x:
x = array([1, 2, 3, 4, 5, 6, 7, 8]) x.shape = (8,1)
I want to reshape it to become
array([[1, 3
Yes, you can do:
y = np.array([x[0::2], x[1::2]])