Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre Task: Modifying Part of a Series | 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: Modifying Part of a Series

Tâche

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

book
Task: Modifying Part of a Series

Tâche

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 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 13
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