Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre Task: Adding a New Employee to the Café Team | Basics of Dataframes
Pandas: First Steps
course content

Contenu du cours

Pandas: First Steps

Pandas: First Steps

1. Getting Started
2. Basics of Dataframes

book
Task: Adding a New Employee to the Café Team

Tâche

Swipe to start coding

The manager is maintaining a list of employees working at the café. The current data includes the name, role, and hours worked for three employees:

NameRoleHours Worked
AliceBarista35
BobChef40
CharlieWaiter30

The manager wants to register a new employee to the list.

  • Use the loc property to add a new row at the next available index with the following data related to the new employee:
    • Name: David
    • Role: Barista
    • Hours Worked: 37

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 2. Chapitre 9
toggle bottom row

book
Task: Adding a New Employee to the Café Team

Tâche

Swipe to start coding

The manager is maintaining a list of employees working at the café. The current data includes the name, role, and hours worked for three employees:

NameRoleHours Worked
AliceBarista35
BobChef40
CharlieWaiter30

The manager wants to register a new employee to the list.

  • Use the loc property to add a new row at the next available index with the following data related to the new employee:
    • Name: David
    • Role: Barista
    • Hours Worked: 37

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 2. Chapitre 9
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