Sección 1. Capítulo 8
single
Challenge: Segment Customers and Summarize Spend
Desliza para mostrar el menú
Tarea
Desliza para comenzar a programar
Create a function that organizes customer data into segments and summarizes their spending.
- Use the provided data to create a DataFrame with customer IDs, segment labels, and spend amounts.
- Group the data by the
segmentcolumn. - Calculate the average spend for each segment.
- Output a summary showing the average spend per segment.
Solución
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 1. Capítulo 8
single
Pregunte a AI
Pregunte a AI
Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla