python excel 数据透视表
时间: 2023-09-17 16:08:00 浏览: 327
左手pandas右手Python,带你学习数据透视表
Python和Excel都可以用于创建数据透视表,但在处理数据透视方面,Python***通过Python来实现。通过使用pivot_table函数,可以创建一个DataFrame类型的数据透视表,并且可以使用DataFrame的方法来筛选和操作数据透视表中的数据。在Python中,数据透视表的数据源没有像Excel那样有固定的格式要求,因此更加灵活。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [数据透视:Excel数据透视和Python数据透视](https://blog.csdn.net/shujufenxianli/article/details/123181325)[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_2"}}] [.reference_item style="max-width: 50%"]
- *2* [利用excel与Pandas完成实现数据透视表(文末赠书)](https://blog.csdn.net/lemonbit/article/details/127544087)[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_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文