xorbits.pandas.DataFrame.T#

property DataFrame.T#

The transpose of the DataFrame.

返回

The transposed DataFrame.

返回类型

DataFrame

参见

DataFrame.transpose

Transpose index and columns.

实际案例

>>> df = pd.DataFrame({'col1': [1, 2], 'col2': [3, 4]})  
>>> df  
   col1  col2
0     1     3
1     2     4
>>> df.T  
      0  1
col1  1  2
col2  3  4

This docstring was copied from pandas.core.frame.DataFrame.