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

single

bookChallenge: Identify Top and Bottom Products

Sveip for å vise menyen

Oppgave

Sveip for å begynne å kode

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øsning

Switch to desktopBytt til skrivebordet for virkelighetspraksisFortsett der du er med et av alternativene nedenfor
Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 1. Kapittel 4
single

single

Spør AI

expand

Spør AI

ChatGPT

Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår

some-alt