I want to sum the C & D columns before removing the first duplicate value
For Example
Index ID A B C D
0 AA 100 2 4 6
1 AA 200 3 5 4
2 BB 50 1 2 3
3 BB 300 4 1 0
Before removing the duplicates I want to sum the C & D columns and then remove the duplicates as shown below
Index ID A B C D
1 AA 200 3 9 10
3 BB 300 4 3 3
How do I achieve this?