Course Content
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: Finding Total Sales Per Drink
Task
Swipe to start coding
At CafΓ© Pandasia, the manager wants to track the total sales for each coffee drink
Youβve been given a DataFrame that tracks the sales of three drinks across three days (Monday to Wednesday), and now you need to add a new column called Total Sales
to the DataFrame.
- Add a new column called
Total Sales
todf
. Total Sales
should contain the sum of the sales from Monday to Wednesday for each drink.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 2. ChapterΒ 6
Task: Finding Total Sales Per Drink
Task
Swipe to start coding
At CafΓ© Pandasia, the manager wants to track the total sales for each coffee drink
Youβve been given a DataFrame that tracks the sales of three drinks across three days (Monday to Wednesday), and now you need to add a new column called Total Sales
to the DataFrame.
- Add a new column called
Total Sales
todf
. Total Sales
should contain the sum of the sales from Monday to Wednesday for each drink.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 2. ChapterΒ 6