How transpose my matrix in python
A = [1, 2, 3, 4]
into:
B = [[1],
[2],
[3],
[4]]??
A is numpy.array. When I transpose it by using A = A.T i get:
B = [[1,
2,
3,
4]]
Thanks for help!
It must be exactly like:
B = [[1],
[2],
[3],
[4]]
Not:
B = [[[1],
[2],
[3],
[4]]]
Not:
B = [[1]\n\n,[2]\n\n,[3]\n\n,[4]\n\n]
Look into debugger, not what is printed. U know what I mean?