One D Transpose

import numpy as np
a = [3,6,9]
b = np.array(a)
b
array([3, 6, 9])
b.shape
(3,)
c = b.T
c
array([3, 6, 9])
c.shape
(3,)
# c didn't get the different shape because of the one D
e = np.array([a])
e
array([[3, 6, 9]])
e.shape
(1, 3)
f = e.T
f
array([[3],
       [6],
       [9]])
e.ndim
2

more: https://stackoverflow.com/questions/5954603/transposing-a-numpy-array