3 ms·
You are right, T would be nicer than np.tranpose. But the first google hit on 'numpy transpose' [1] doesn't give that as as example. Also you too made the same
by sampo 10y ago
You are right, T would be nicer than np.tranpose. But the first google hit on 'numpy transpose' [1] doesn't give that as as example.
Also you too made the same mistake: np.array([2,3,1]).T doesn't do anything, you need np.array([[2,3,1]]).T
[1] https://docs.scipy.org/doc/numpy/reference/generated/numpy.transpose.html https://docs.scipy.org/doc/numpy/reference/generated/numpy.t...