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
Another option is to use the option order='F' to your reshape-call like
order='F'
res = numpy.reshape(my_array, (2,4), order='F')
https://docs.scipy.org/doc/numpy-1.15.1/reference/generated/numpy.reshape.html