Home > other >  To sum the how to operate multiple fields, many thanks!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
To sum the how to operate multiple fields, many thanks!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Time:11-07

The data format is as follows:
Df1

Des code sum1 sum2 sum3 sum4
A 1 14 32 33 21
43 34 b 2 23 23
43 43 c 3 23 23
.


Des and code column no duplicate data, I want to sum of sum1 ~ sum4, finally get the following results:


Des code sum1 sum2 sum3 sum4
All 00 xx xx xx xx


Use the pandas operation, how to implement, points is not much, many thanks!

CodePudding user response:

Which tall person saw, do me a favor
  • Related