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

bookTask: Processing the Restock of Inventory

Task

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

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 14
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

Suggested prompts:

Summarize this chapter

Explain the code in file

Explain why file doesn't solve the task

close

Awesome!

Completion rate improved to 2.7

bookTask: Processing the Restock of Inventory

Swipe to show menu

Task

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 desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 14
single

single

some-alt