Python Grouping People In Pandas Dataframe With Customized Function

Python Grouping People In Pandas Dataframe With Customized Function