📜  交换行和列 pandas - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:32.985000             🧑  作者: Mango

代码示例1
df_tr = df.transpose()
print(df_tr)
#            0    1        2
# name   Alice  Bob  Charlie
# age       24   42       18
# state     NY   CA       CA
# point     64   92       70