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

Svep för att visa menyn

book
Task: Finding the Most Expensive Coffees

Uppgift

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 desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 3. Kapitel 4
Vi beklagar att något gick fel. Vad hände?

Fråga AI

expand
ChatGPT

Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal

book
Task: Finding the Most Expensive Coffees

Uppgift

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 desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 3. Kapitel 4
Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Vi beklagar att något gick fel. Vad hände?
some-alt