Секція 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.
Завдання
Swipe to start coding
- 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
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат