I have been doing this series of aggregations for months now, with no error whatsoever.
goals = df.groupby(\'name\').sum()[\'G\'] assists = df.groupby(\'name\