I have a data frame that looks like this:
Reach Chem HQ
a Mercury 1.12
a Nickel 1.65
b Mercury 1.54
b Nickel 2.34
b Cadmium 3.12
c Mercury 2.12
c Nickel 2.34
I would like to strip down the data frame by only keeping the record for each Reach
with the highest HQ
, resulting in this:
Reach Chem HQ
a Nickel 1.65
b Cadmium 3.12
c Nickel 2.34
What is the best way to do this?