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

Svep för att visa menyn

book
Task: Modifying a single element

Uppgift

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 desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 1. Kapitel 11
Vi beklagar att något gick fel. Vad hände?

Fråga AI

expand
ChatGPT

Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal

book
Task: Modifying a single element

Uppgift

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 desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 1. Kapitel 11
Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Vi beklagar att något gick fel. Vad hände?
some-alt