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

Course Content

Pandas: First Steps

book
Task: Modifying a single element

Task

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.

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

book
Task: Modifying a single element

Task

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.

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Β 11
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