Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Challenge: Identify Top and Bottom Products | Automating Reports and Visual Insights
Python Automation for Reports and Visual Insights
Seção 1. Capítulo 4
single

single

bookChallenge: Identify Top and Bottom Products

Deslize para mostrar o menu

Tarefa

Deslize para começar a programar

Given a DataFrame with product names and sales amounts, your goal is to analyze the sales data and clearly report which products performed best and worst.

  • Group the data by the product column and sum the sales values for each product.
  • Sort the products by their total sales in descending order.
  • Identify the top 2 products with the highest total sales.
  • Identify the bottom 2 products with the lowest total sales.
  • Print the top 2 and bottom 2 products in a clear format.

Solução

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 1. Capítulo 4
single

single

Pergunte à IA

expand

Pergunte à IA

ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

some-alt