### Navigation

- index
- modules |
- modules |
- next |
- previous |
- NumPy v1.7 Manual (DRAFT) »
- NumPy Reference »
- Routines »
- Array manipulation routines »

# numpy.ndarray.T

`ndarray.``T`

  Same as self.transpose(), except that self is returned if self.ndim < 2.

  Examples

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

### Navigation

- index
- modules |
- modules |
- next |
- previous |
- NumPy v1.7 Manual (DRAFT) »
- NumPy Reference »
- Routines »
- Array manipulation routines »