Pregunta de entrevista de Pinterest

Python/Pandas: Given a df find the category with highest avg time spent