Task: Preview the Coffee Menu
Opgave
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
.
Løsning
Var alt klart?
Tak for dine kommentarer!
Sektion 3. Kapitel 2