Kursinhalt
Pandas: First Steps
Pandas: First Steps
1. Getting Started
Introduction to PandasSeriesTask: Coffee Orders SeriesTask: Barista's Favorites CoffeesAccessing Elements from a SeriesTask: Drink of the HourTask - Signature DrinksTask: Mid-Morning SpecialsTask - Fetching the Mid-Shift DrinksOperations over SeriesTask: Modifying a single elementTask: Modifying the Entire SeriesTask: Modifying Part of a SeriesTask: Processing the Restock of Inventory
2. Basics of Dataframes
What is a DataFrame?Task: Creating a Table of Popular Coffee DrinksTask: Tracking Coffee Bean DeliveriesTask: Weekly Coffee Sales ReportAdding new ColumnsTask: Finding Total Sales Per DrinkTask: Calculating Total Sales RevenueAdding new RowsTask: Adding a New Employee to the Café TeamTask: Adding New Coffee Types to the Café Menu
Task: Processing the Restock of Inventory
Aufgabe
Swipe to start coding
The team at Café Pandasia has completed a fresh restock of coffee beans! You’ve been given two Series:
previous_inventory
: The original stock before the deliveryrestocked
: The number of units added during the restock
You’ve been asked to calculate the total updated inventory by adding the two Series together.
- Add the corresponding elements of
previous_inventory
andrestocked
Series to calculate the total current inventory. - Save the result in a new variable called
updated_inventory
.
Lösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 1. Kapitel 14
Task: Processing the Restock of Inventory
Aufgabe
Swipe to start coding
The team at Café Pandasia has completed a fresh restock of coffee beans! You’ve been given two Series:
previous_inventory
: The original stock before the deliveryrestocked
: The number of units added during the restock
You’ve been asked to calculate the total updated inventory by adding the two Series together.
- Add the corresponding elements of
previous_inventory
andrestocked
Series to calculate the total current inventory. - Save the result in a new variable called
updated_inventory
.
Lösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 1. Kapitel 14