Pythonic way to apply different aggregate functions to different columns of a pandas dataframe? And to name the columns efficiently?

前端 未结 0 581
眼角桃花
眼角桃花 2021-02-14 20:55

My issue

In SQL it is very easy to apply different aggregate functions to different columns, e.g. :

select item, sum(a) as [sum of a], avg(b) as [avg of          


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