pandas中shape
时间: 2023-10-20 08:32:36 浏览: 124
pandas中的shape属性用于返回DataFrame或Series的维度信息,即返回一个元组,该元组表示对象的行数和列数。 该属性可以通过以下方式来获取:df.shape或者s.shape,其中df是指DataFrame对象,s是指Series对象。 pandas中的shape属性可以帮助我们了解数据的结构和大小,以便进行进一步的数据分析和处理。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [python学习-pandas(1)](https://blog.csdn.net/u014229742/article/details/80686843)[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: 50%"]
- *2* [pandas中的series数据类型详解](https://download.csdn.net/download/weixin_38723236/14874552)[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: 50%"]
[ .reference_list ]
阅读全文