Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Task: Modifying a single element | Getting Started
Pandas: First Steps

bookTask: Modifying a single element

Opgave

Swipe to start coding

At Café Pandasia, the coffee shop tracks its coffee bean inventory. The data is stored in a pandas.Series that keeps track of the quantity of each coffee bean type (coffee_inventory);

The café manager has noticed a mistake in the inventory of "Robusta" beans — it was recorded as 200, but after a recount, it should actually be 180.

  • Modify the coffee_inventory and set the Robusta beans to 180.

Løsning

Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 1. Kapitel 11
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: Modifying a single element

Stryg for at vise menuen

Opgave

Swipe to start coding

At Café Pandasia, the coffee shop tracks its coffee bean inventory. The data is stored in a pandas.Series that keeps track of the quantity of each coffee bean type (coffee_inventory);

The café manager has noticed a mistake in the inventory of "Robusta" beans — it was recorded as 200, but after a recount, it should actually be 180.

  • Modify the coffee_inventory and set the Robusta beans to 180.

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!

close

Awesome!

Completion rate improved to 2.7
Sektion 1. Kapitel 11
single

single

some-alt