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
baristaslist 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.
Lösning
Tack för dina kommentarer!
single
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal
Sammanfatta detta kapitel
Explain code
Explain why doesn't solve task
Awesome!
Completion rate improved to 2.7
Task - Signature Drinks
Svep för att visa menyn
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
baristaslist 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.
Lösning
Tack för dina kommentarer!
single