Pregunta de entrevista de Shopee

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