Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Task - Fetching the Mid-Shift Drinks | Getting Started
Pandas: First Steps

bookTask - Fetching the Mid-Shift Drinks

Opgave

Swipe to start coding

At Café Pandasia, each barista has their own specialty drink. You previously created a Series to map each barista to their signature coffee.

Now, the manager wants to focus on the mid-shift team — specifically the drinks made by Ben to Chloe (inclusive).

  • Use slicing with custom indexing to get the drinks made by Ben to Chloe (including Chloe).
  • Store the result into a variable called result.

Løsning

Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 1. Kapitel 9
single

single

Spørg AI

expand

Spørg AI

ChatGPT

Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat

Suggested prompts:

Opsummér dette kapitel

Explain code

Explain why doesn't solve task

close

Awesome!

Completion rate improved to 2.7

bookTask - Fetching the Mid-Shift Drinks

Stryg for at vise menuen

Opgave

Swipe to start coding

At Café Pandasia, each barista has their own specialty drink. You previously created a Series to map each barista to their signature coffee.

Now, the manager wants to focus on the mid-shift team — specifically the drinks made by Ben to Chloe (inclusive).

  • Use slicing with custom indexing to get the drinks made by Ben to Chloe (including Chloe).
  • Store the result into a variable called result.

Løsning

Switch to desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 1. Kapitel 9
single

single

some-alt