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

Glissez pour afficher le menu

book
Task: Preview the Coffee Menu

Tâche

Swipe to start coding

At Café Pandasia, the menu has grown quite large with many coffee drinks now listed.

Before pricing the entire menu, the manager wants to quickly preview just the first few items to ensure everything looks correct.

  • Use the head() method to fetch the first 4 rows of df and store them in a new variable called result.

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 2

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: Preview the Coffee Menu

Tâche

Swipe to start coding

At Café Pandasia, the menu has grown quite large with many coffee drinks now listed.

Before pricing the entire menu, the manager wants to quickly preview just the first few items to ensure everything looks correct.

  • Use the head() method to fetch the first 4 rows of df and store them in a new variable called result.

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 2
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