 <p>You can only transpose a 2D array. You can use <code>numpy.matrix</code> to create a 2D array. This is three years late, but I am just adding to the possible set of solutions:</p> <pre><code>import numpy as np m = np.matrix([2, 3]) m.T </code></pre>