Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lernen Challenge: Identify Top and Bottom Products | Automating Reports and Visual Insights
Python Automation for Reports and Visual Insights
Abschnitt 1. Kapitel 4
single

single

bookChallenge: Identify Top and Bottom Products

Swipe um das Menü anzuzeigen

Aufgabe

Wischen, um mit dem Codieren zu beginnen

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.

Lösung

Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 1. Kapitel 4
single

single

Fragen Sie AI

expand

Fragen Sie AI

ChatGPT

Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen

some-alt