Shopee Interview Question

Extract data from a dataframe using some pandas functions for grouping and aggregation