Зміст курсу
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 - Fetching the Mid-Shift Drinks
Завдання
Swipe to start coding
At Café Pandasia, each barista has their own specialty drink. You previously created a Series to map each barista to their signature coffee.
Now, the manager wants to focus on the mid-shift team — specifically the drinks made by Ben to Chloe (inclusive).
- Use slicing with custom indexing to get the drinks made by Ben to Chloe (including Chloe).
- Store the result into a variable called
result
.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 1. Розділ 9
Task - Fetching the Mid-Shift Drinks
Завдання
Swipe to start coding
At Café Pandasia, each barista has their own specialty drink. You previously created a Series to map each barista to their signature coffee.
Now, the manager wants to focus on the mid-shift team — specifically the drinks made by Ben to Chloe (inclusive).
- Use slicing with custom indexing to get the drinks made by Ben to Chloe (including Chloe).
- Store the result into a variable called
result
.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 1. Розділ 9