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

single

bookChallenge: Identify Top and Bottom Products

Desliza para mostrar el menú

Tarea

Desliza para comenzar 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.

Solución

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 1. Capítulo 4
single

single

Pregunte a AI

expand

Pregunte a AI

ChatGPT

Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla

some-alt