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.]])
numpy.swapaxes
numpy.transpose