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: Tracking Coffee Bean Deliveries
Tâche
Swipe to start coding
Every morning, Café Pandasia receives fresh bags of coffee beans from different suppliers.
You’ve been asked to create a table to keep track of these daily deliveries. The data is given in the form of a 2D List called delivery_data
.
- Use the provided 2D list to create a new DataFrame (
delivery_df
). - Set the column names as:
'Bean Type'
,'Quantity (kg)'
, and'Origin'
respectively.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 2. Chapitre 3
Task: Tracking Coffee Bean Deliveries
Tâche
Swipe to start coding
Every morning, Café Pandasia receives fresh bags of coffee beans from different suppliers.
You’ve been asked to create a table to keep track of these daily deliveries. The data is given in the form of a 2D List called delivery_data
.
- Use the provided 2D list to create a new DataFrame (
delivery_df
). - Set the column names as:
'Bean Type'
,'Quantity (kg)'
, and'Origin'
respectively.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 2. Chapitre 3