Зміст курсу
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 - Signature Drinks
Завдання
Swipe to start coding
At Café Pandasia, every barista has their own specialty drink — the one they’re best at making! The manager wants to organize this data so that each barista’s name is used as a label, and their signature drink is the value.
Let’s help them make a neat pandas.Series
using custom indices.
- Create a Series from the drinks list, using the
baristas
list as custom indices. - Store the Series in a variable in a variable called
specialities
. - Print the speciality drink of
"Chloe"
in a new variable calledchloes_drink
. - Print the speciality drink of
"Chloe"
via Custom Indexing.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 1. Розділ 7
Task - Signature Drinks
Завдання
Swipe to start coding
At Café Pandasia, every barista has their own specialty drink — the one they’re best at making! The manager wants to organize this data so that each barista’s name is used as a label, and their signature drink is the value.
Let’s help them make a neat pandas.Series
using custom indices.
- Create a Series from the drinks list, using the
baristas
list as custom indices. - Store the Series in a variable in a variable called
specialities
. - Print the speciality drink of
"Chloe"
in a new variable calledchloes_drink
. - Print the speciality drink of
"Chloe"
via Custom Indexing.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 1. Розділ 7