manager_rank = df.groupby('manager').sum()['return'].rank(ascending=False
    ).to_frame(name='manager_rank').reset_index()
df = pd.merge(df, manager_rank, on='manager')
Rank by grouby column aggregate