numpy.ndarray.T

ndarray.T

Same as self.transpose() except self is returned for self.ndim < 2.

Examples

>>> x = np.array([[1.,2.],[3.,4.]])
>>> x.T
array([[ 1.,  3.],
       [ 2.,  4.]])

Previous topic

numpy.swapaxes

Next topic

numpy.transpose

This Page

Quick search