I have a dataframe:
Test  Test2  Test3
a     d      1
b     d      4
a     s      5
a     d      2
I want to write a function that looks at all the rows and if the values in Test and Test2 are the same, it adds all the values in Test3 and creates this as a new row and deletes all the old ones with duplicates in Test and Test2. In this case, the final df would look like this:
Test  Test2  Test3
a     d      3
b     d      4
a     s      5
Is there a way to do this without looping through the df and deleting all the rows "manually"?
How would I handle additional columns using the code in the suggested post?
