Base.T

property Base.T

Invert the feature and point indices of the data.

Return a new object that is the transpose of the calling object. The feature and point indices will be inverted, including inverting point and feature names, if available.

See also

transpose

transpose the object inplace.

Examples

>>> lst = [[1, 2, 3], [4, 5, 6]]
>>> X = nimble.data(lst)
>>> X
<Matrix 2pt x 3ft
     0  1  2
   ┌────────
 0 │ 1  2  3
 1 │ 4  5  6
>
>>> X.T
<Matrix 3pt x 2ft
     0  1
   ┌─────
 0 │ 1  4
 1 │ 2  5
 2 │ 3  6
>