Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lernen Task: Processing the Restock of Inventory | Getting Started
Pandas: First Steps

Swipe um das Menü anzuzeigen

book
Task: Processing the Restock of Inventory

Aufgabe

Swipe to start coding

The team at Café Pandasia has completed a fresh restock of coffee beans! You’ve been given two Series:

  • previous_inventory: The original stock before the delivery
  • restocked: The number of units added during the restock

You’ve been asked to calculate the total updated inventory by adding the two Series together.

  • Add the corresponding elements of previous_inventory and restocked Series to calculate the total current inventory.
  • Save the result in a new variable called updated_inventory.

Lösung

Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 1. Kapitel 14

Fragen Sie AI

expand
ChatGPT

Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen

book
Task: Processing the Restock of Inventory

Aufgabe

Swipe to start coding

The team at Café Pandasia has completed a fresh restock of coffee beans! You’ve been given two Series:

  • previous_inventory: The original stock before the delivery
  • restocked: The number of units added during the restock

You’ve been asked to calculate the total updated inventory by adding the two Series together.

  • Add the corresponding elements of previous_inventory and restocked Series to calculate the total current inventory.
  • Save the result in a new variable called updated_inventory.

Lösung

Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 1. Kapitel 14
Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
Wir sind enttäuscht, dass etwas schief gelaufen ist. Was ist passiert?
some-alt