pandas库中的转置(transpose)函数
时间: 2023-10-17 07:25:36 浏览: 134
Python库 | pandas-1.0.1.tar.gz
5星 · 资源好评率100%
在pandas库中,转置(transpose)函数的作用是将DataFrame的行和列进行互换,即将原来的列变成行,原来的行变成列。通过调用transpose()函数可以实现这一功能。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [pandas使用transpose函数对dataframe进行转置、将dataframe的行和列进行互换(flip the rows and columns ...](https://blog.csdn.net/zhongkeyuanchongqing/article/details/122712496)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文