SciPy

This is documentation for an old release of NumPy (version 1.10.0). Read this page in the documentation of the latest stable release (version > 1.17).

numpy.chararray.T

chararray.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.])

Previous topic

numpy.chararray

Next topic

numpy.chararray.base