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

Swipe to show menu

book
Task: Preview the Coffee Menu

Task

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 desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 3. ChapterΒ 2
We're sorry to hear that something went wrong. What happened?

Ask AI

expand
ChatGPT

Ask anything or try one of the suggested questions to begin our chat

book
Task: Preview the Coffee Menu

Task

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 desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 3. ChapterΒ 2
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
We're sorry to hear that something went wrong. What happened?
some-alt