simplify codes for pandas groupby().agg()

前端 未结 0 1489
耶瑟儿~
耶瑟儿~ 2020-12-12 05:12

I have a dataframe that I\'m trying to group by and get sum for multiple columns, for which I have below code:

df=df.groupby([\'year\',\'month\']).agg({\'A\':         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题