df.groupby(['User', 'year', 'week']).apply(lambda x: x.loc[x['P/L'].idxmax(), 'symbol'])