pandas对某列数据进行求和

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

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

猜你喜欢

转载自www.cnblogs.com/leoych/p/12464557.html
今日推荐