Task: Barista's Favorites Coffees
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
favoritesas elements anddaysas indices. - Store the series in a variable called
fav_coffees.
Solution
Thanks for your feedback!
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Summarize this chapter
Explain the code in file
Explain why file doesn't solve the task
Awesome!
Completion rate improved to 2.7
Task: Barista's Favorites Coffees
Swipe to show menu
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
favoritesas elements anddaysas indices. - Store the series in a variable called
fav_coffees.
Solution
Thanks for your feedback!
single