Sezione 1. Capitolo 8
single
Challenge: Segment Customers and Summarize Spend
Scorri per mostrare il menu
Compito
Scorri per iniziare a programmare
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.
Soluzione
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 1. Capitolo 8
single
Chieda ad AI
Chieda ad AI
Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione