I have a dataframe that looks like this:
| Id | Label | Width |
|----|-------| ------|
| 0 | A | 5 |
| 0 | A | 3 |
| 0 | B | 4 |
| 1 | A | 7 |
| 1 | A | 9 |
I want to write a function that takes the rows with same id and label A and filter it based on the highest width
so the after applying the function the dataframe would be:
| Id | Label | Width |
|----|-------| ------|
| 0 | A | 5 |
| 0 | B | 4 |
| 1 | A | 9 |