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

Contenu du cours

Pandas: First Steps

Pandas: First Steps

1. Getting Started
2. Basics of Dataframes

book
Task: Processing the Restock of Inventory

Tâche

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.

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 14
toggle bottom row

book
Task: Processing the Restock of Inventory

Tâche

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.

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 14
Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Nous sommes désolés de vous informer que quelque chose s'est mal passé. Qu'est-il arrivé ?
some-alt