Contenu du cours
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: Mid-Morning Specials
Tâche
Swipe to start coding
Remember the Drink of the Hour board from Chapter 6 at Café Pandasia?
The café manager now wants to print just the mid-morning specials — the drinks served between 9 AM and 11 AM, so the team can make a poster for social media.
- Use slicing to get the drinks served between 9 AM and 11 AM.
- Store the result in a variable called
result
.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 1. Chapitre 8
Task: Mid-Morning Specials
Tâche
Swipe to start coding
Remember the Drink of the Hour board from Chapter 6 at Café Pandasia?
The café manager now wants to print just the mid-morning specials — the drinks served between 9 AM and 11 AM, so the team can make a poster for social media.
- Use slicing to get the drinks served between 9 AM and 11 AM.
- Store the result in a variable called
result
.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 1. Chapitre 8