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

Glissez pour afficher le menu

book
Task: Finding the Most Expensive Coffees

Tâche

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

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 3. Chapitre 4

Demandez à l'IA

expand
ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

book
Task: Finding the Most Expensive Coffees

Tâche

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

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 3. Chapitre 4
Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Nous sommes désolés de vous informer que quelque chose s'est mal passé. Qu'est-il arrivé ?
some-alt