numpy.ndarray.T in Python

The numpy.ndarray.T attribute makes a Transpose of an array having a dimension greater than or equal to 2.

Syntax

ndarray.T()

Parameter

NA

Return

This attribute returns the transpose of an array

Example 1

Output

Pin It on Pinterest

Share This