I am trying to calculate a new column which contains maximum values for each of several groups. I\'m coming from a Stata background so I know the Stata code would be somethi
Using the approach from jpp above works, but it also gives a "SettingWithCopyWarning". While this may not be an issue, I believe the code below would remove that warning: