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 ofdf
and store them in a new variable calledresult
.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 3. ChapterΒ 2
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: Preview the Coffee Menu
Swipe to show 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 ofdf
and store them in a new variable calledresult
.
Solution
Everything was clear?
Thanks for your feedback!
Awesome!
Completion rate improved to 2.7SectionΒ 3. ChapterΒ 2
single