セクション 1. 章 8
single
Challenge: Segment Customers and Summarize Spend
メニューを表示するにはスワイプしてください
タスク
スワイプしてコーディングを開始
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.
解答
すべて明確でしたか?
フィードバックありがとうございます!
セクション 1. 章 8
single
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください