Here is my requirement
I have an existing data frame df.A[a,b,c]
and would like create a new df.B[X,Y]
from the df.A
by doing some arithmetic operation on the columns in df.A
it will be like
df.A= a b c
0 1 2
0 2 0
1 3 2
My df.B will be derived as
df.B['X','Y']=df.A[(sum[A.a]+[A.b]),sum[A.c]]
The output should look like
df.B= X Y
7 4
let me know if you need any further details to achieve this case.