pandas数据处理--pivot
pivot VS pivot_table
pivot_table
创建一个电子表格式的数据透视表作为DataFrame。以index columns来决定结果DataFrame的多索引(层级索引)。
重要的参数:
values 用于聚集的列
index 用做结果DataFrame的索引的项,可以是column, Grouper, array or list of the previous...
原创
2018-10-16 11:40:12 ·
334 阅读 ·
0 评论