セクション 3. 章 2
single
The Most Profitable Store
メニューを表示するにはスワイプしてください
Since we want to find the most profitable stores based on the given data, we need to group the observations in the df dataframe by the 'Store' column values and calculate the total (sum) of the 'Weekly_Sales' column for each group. Finally, we need to sort the resulting values in descending order.
タスク
スワイプしてコーディングを開始
- Group the observations in the
dfdataframe by the'Store'column values. - Select the
'Weekly_Sales'column. - Calculate the total (sum) for each group.
- Sort the resulting values in descending order (not ascending).
解答
すべて明確でしたか?
フィードバックありがとうございます!
セクション 3. 章 2
single
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください