Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Task: Finding the Most Expensive Coffees | Fetching Data from DataFrames
Pandas: First Steps

Stryg for at vise menuen

book
Task: Finding the Most Expensive Coffees

Opgave

Swipe to start coding

Café Pandasia has now finalized its updated coffee menu!

Each drink has been assigned a price, and the manager wants to quickly spot the most expensive ones.

  • Fetch the rows containing top three most expensive drinks and store them in a new variable called most_expensive.

Note

In the DataFrame df the drinks have been sorted from least to most expensive in terms of price, with the most expensive drink at the end.

Løsning

Switch to desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 3. Kapitel 4

Spørg AI

expand
ChatGPT

Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat

book
Task: Finding the Most Expensive Coffees

Opgave

Swipe to start coding

Café Pandasia has now finalized its updated coffee menu!

Each drink has been assigned a price, and the manager wants to quickly spot the most expensive ones.

  • Fetch the rows containing top three most expensive drinks and store them in a new variable called most_expensive.

Note

In the DataFrame df the drinks have been sorted from least to most expensive in terms of price, with the most expensive drink at the end.

Løsning

Switch to desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 3. Kapitel 4
Switch to desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Vi beklager, at noget gik galt. Hvad skete der?
some-alt