Using Lambda Function In Pandas Dataframe Group By