sum of specific rows pandas dataframe

后端 未结 0 647
误落风尘
误落风尘 2020-12-07 16:55

I have a dataframe and would like to add sums of specific rows into this dataframe. So for example I have

df = pd.DataFrame({\'prod\':[\'a\',\'a\',\'a\',\'b\'         


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