Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
Ctrl+K

pandas.DataFrame.T#

propertyDataFrame.T[source]#

The transpose of the DataFrame.

Returns:
DataFrame

The transposed DataFrame.

See also

DataFrame.transpose

Transpose index and columns.

Examples

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

[8]ページ先頭

©2009-2025 Movatter.jp