Osio 1. Luku 8
single
Challenge: Segment Customers and Summarize Spend
Pyyhkäise näyttääksesi valikon
Tehtävä
Pyyhkäise aloittaaksesi koodauksen
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.
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 1. Luku 8
single
Kysy tekoälyä
Kysy tekoälyä
Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme