Task: Adding New Coffee Types to the Café Menu
Task
Swipe to start coding
At Café Pandasia, the manager has been updating the menu and wants to add more coffee types.
The manager wants to add three new coffee types:
- Americano: Price: 2.8, Availability: Yes
- Macchiato: Price: 3.2, Availability: No
- Mocha: Price: 3.5, Availability: Yes
Use the loc property to add the three new coffee types to the existing DataFrame (df).
Solution
Everything was clear?
Thanks for your feedback!
Section 2. Chapter 10
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 2.7
Task: Adding New Coffee Types to the Café Menu
Swipe to show menu
Task
Swipe to start coding
At Café Pandasia, the manager has been updating the menu and wants to add more coffee types.
The manager wants to add three new coffee types:
- Americano: Price: 2.8, Availability: Yes
- Macchiato: Price: 3.2, Availability: No
- Mocha: Price: 3.5, Availability: Yes
Use the loc property to add the three new coffee types to the existing DataFrame (df).
Solution
Everything was clear?
Thanks for your feedback!
Section 2. Chapter 10
single