SyntaxFix
Write A Post
Hire A Developer
Questions
You can only transpose a 2D array. You can use numpy.matrix to create a 2D array. This is three years late, but I am just adding to the possible set of solutions:
numpy.matrix
import numpy as np m = np.matrix([2, 3]) m.T