x_new=np.array([1,2,3])
print(x_new)
x1=x_new.T
print(x1)
output:
[1 2 3]
[1 2 3]
Can anybody tell me how to transpose this matrix from (1,3) to (3,1)?
x_new=np.array([1,2,3])
print(x_new)
x1=x_new.T
print(x1)
output:
[1 2 3]
[1 2 3]
Can anybody tell me how to transpose this matrix from (1,3) to (3,1)?