Assuming I have a dataframe in the following format:
Group Setting Runtime Memory SomeOtherColumns
A X 102 105 ...
A X 107 80 ...
A Y 100 104 ...
A Y 101 82 ...
B X 10 50 ...
B X 11 51 ...
B X 8 52 ...
B Y 13 60 ...
B Y 14 61 ...
B Y 15 62 ...
C X 5 6 ...
C Y 6 7 ...
I would like to extract one row per Group+Setting
, i.e., one row for A+X
, A+Y
, B+X
, B+Y
, C+X
, and C+Y
.
The extracted row should be the one with the lowest Runtime
value for the given group.
Following the expected result:
Group Setting Runtime Memory SomeOtherColumns ...
A X 102 105 ...
A Y 100 104 ...
B X 8 52 ...
B Y 13 60 ...
C X 5 6 ...
C Y 6 7 ...