I have a dataframe with multiple columns (a, b, c, d). I grouped my dataframe by columns 'c' and 'd' and integrated column 'a' with respect to column 'b'. This gave me the output in the following format (the values which go like '1500, 1400 ... 700' are the result of the performed integration):
c d
1 10 1500
20 1400
30 1300
2 10 1200
20 1100
30 1000
3 10 900
20 800
30 700
I was wondering how can I convert that output into a dataframe, where it would show columns 'c', 'd', and also create a new column which would contain the result of integration?