I have the following DataFrame:
I need to create a new DataFrame from this one, which only will include the maximum value from the col3 for each unique pair of col1 and col2 values. The end result needs to look as the following:
For example, there are 2 rows where col1 is a and col2 is c. In one column, col3 is 1 and in the other one col3 is 2. And I only need to include the row where col3 is 2 because 2 is the max value of col3 where col1 is a and col2 is c.
What would be the most elegant way of doing this without making it too complex?