pandas 聚合求和等操作

参考:https://blog.csdn.net/m0_38139979/article/details/106606633

 

result1= result.groupby(['user_id', 'industry'])['click_times'].sum().reset_index(name="click_sum") 
posted @ 2020-11-28 21:13  qiezi_online  阅读(270)  评论(0编辑  收藏  举报