Task: Finding the Most Expensive Coffees
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.
Solution
Thanks for your feedback!
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 2.7
Task: Finding the Most Expensive Coffees
Swipe to show menu
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.
Solution
Thanks for your feedback!
Awesome!
Completion rate improved to 2.7single