首页 > 技术文章 > pandas对某列数据进行求和

leoych 2020-03-11 18:41 原文

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

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

 

推荐阅读