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.
Løsning
Takk for tilbakemeldingene dine!
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår
Oppsummer dette kapittelet
Explain code
Explain why doesn't solve task
Awesome!
Completion rate improved to 2.7
Task: Finding the Most Expensive Coffees
Sveip for å vise menyen
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
Takk for tilbakemeldingene dine!
Awesome!
Completion rate improved to 2.7single