I have the follow dataframe:
acount document type sum_old sum_new
001 12345 C 10 20
001 12345 D 20 50
555 00770 C 31 44
And I would like this output:
acount document C_sum_old D_sum_old C_sum_new D_sum_new
001 12345 10 20 20 50
001 00770 31 44
I had tried transpose method but not work
What can I do?