pandas对某列数据进行求和

求和的方式很简单,如下所示:

number_of_declarations = data[4].sum()//中括号中为要求和的列

 

posted @ 2020-03-11 18:41  胸怀丶若谷  阅读(13020)  评论(0编辑  收藏  举报