I am new to python and numpy. I am trying to convert a 1D array into a column , I used transpose, but not working, please any help, I attached the code:
import numpy as np
x=np.array([1,2,3])
print(x)
y=x.T
print(y)
#output should be:
#y=[[1],
# [2],
# [3]]