numpy transform a 2d matrix

import numpy as np

Make a 2D Array

data=[]
for a in range(5):
    data.append([b for b in range(6)])
data
[[0, 1, 2, 3, 4, 5],
 [0, 1, 2, 3, 4, 5],
 [0, 1, 2, 3, 4, 5],
 [0, 1, 2, 3, 4, 5],
 [0, 1, 2, 3, 4, 5]]

Transpose the data i.e. col0 becomes row0 etc

np.transpose(np.array(data))
array([[0, 0, 0, 0, 0],
       [1, 1, 1, 1, 1],
       [2, 2, 2, 2, 2],
       [3, 3, 3, 3, 3],
       [4, 4, 4, 4, 4],
       [5, 5, 5, 5, 5]])

transpose and rearrange the array so it is 1 list

#Using -1 as an unknown Parameter ... but (1,30 also works fine)
np.transpose(np.array(data)).reshape(1,-1)
array([[0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4,
        4, 4, 4, 5, 5, 5, 5, 5]])
np.transpose(np.array(data)).reshape(1,30)
array([[0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4,
        4, 4, 4, 5, 5, 5, 5, 5]])