Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Task: Modifying Part of a Series | Getting Started
Pandas: First Steps
course content

Course Content

Pandas: First Steps

book
Task: Modifying Part of a Series

Task

Swipe to start coding

At CafΓ© Pandasia, the manager wants to update the inventory for a specific group of coffee beans. They’ve decided to increase the stock for the first 5 coffee beans (in the original order) by 30 units each, to prepare for an upcoming promotion.

  • Reference the first 5 coffee beans from the coffee_inventory Series by slicing (either by numerical or custom indexing).
  • Increase their inventory by 30 units each.

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Β 13
toggle bottom row

book
Task: Modifying Part of a Series

Task

Swipe to start coding

At CafΓ© Pandasia, the manager wants to update the inventory for a specific group of coffee beans. They’ve decided to increase the stock for the first 5 coffee beans (in the original order) by 30 units each, to prepare for an upcoming promotion.

  • Reference the first 5 coffee beans from the coffee_inventory Series by slicing (either by numerical or custom indexing).
  • Increase their inventory by 30 units each.

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Β 13
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
We're sorry to hear that something went wrong. What happened?
some-alt