You can use either ravel() or flatten() function with order 'F' to convert a 2D array to a 1D array in column-major order.
Here is an example.
>>> aa=np.array([[1,2,3],[4,5,6],[7,8,9]])>>> aaarray([[1, 2, 3], [4, 5, 6], [7, 8, 9]])>>> np.ravel(aa.T)array([1, 4, 7, 2, 5, 8, 3, 6, 9])>>> np.ravel(aa, order='F')array([1, 4, 7, 2, 5, 8, 3, 6, 9])>>> aa.flatten(order='F')array([1, 4, 7, 2, 5, 8, 3, 6, 9])