Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Task: Barista's Favorites Coffees | Getting Started
Pandas: First Steps

Swipe to show menu

book
Task: Barista's Favorites Coffees

Task

Swipe to start coding

The head barista at CafΓ© Pandasia has decided to create a list of her favorite drinks of the week. Each drink is ranked from Monday to Friday, with one favorite per day.

She wants you to turn this into a Pandas Series β€” but instead of using the default numerical index, she wants each drink labeled by the day of the week!

  • Create a new Series using favorites as elements and days as indices.
  • Store the series in a variable called fav_coffees.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 4
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

close

Awesome!

Completion rate improved to 2.7

book
Task: Barista's Favorites Coffees

Task

Swipe to start coding

The head barista at CafΓ© Pandasia has decided to create a list of her favorite drinks of the week. Each drink is ranked from Monday to Friday, with one favorite per day.

She wants you to turn this into a Pandas Series β€” but instead of using the default numerical index, she wants each drink labeled by the day of the week!

  • Create a new Series using favorites as elements and days as indices.
  • Store the series in a variable called fav_coffees.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

close

Awesome!

Completion rate improved to 2.7

Swipe to show menu

some-alt