Task: Drink of the Hour
Swipe to start coding
At Café Pandasia, every hour has a special featured drink! The café keeps track of the featured drinks in a list, and they want you to help them organize it into a pandas.Series — and access the drink based on the hour of the day.
For simplicity, we’ll say the café is open from 8 AM to 1 PM, and each hour has one special drink.
- Create a Series from the 
drinkslist. - Store the Series in a variable called 
hourly_specials. - In the 
printstatement, replace the___with appropriate code to output the drink featured at 10 AM using numerical indexing (8 AM is index0). 
Note
Both
ilocand normal indexing are accepted as valid methods of indexing in this task.
Рішення
Дякуємо за ваш відгук!
single
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат
Awesome!
Completion rate improved to 2.7
Task: Drink of the Hour
Свайпніть щоб показати меню
Swipe to start coding
At Café Pandasia, every hour has a special featured drink! The café keeps track of the featured drinks in a list, and they want you to help them organize it into a pandas.Series — and access the drink based on the hour of the day.
For simplicity, we’ll say the café is open from 8 AM to 1 PM, and each hour has one special drink.
- Create a Series from the 
drinkslist. - Store the Series in a variable called 
hourly_specials. - In the 
printstatement, replace the___with appropriate code to output the drink featured at 10 AM using numerical indexing (8 AM is index0). 
Note
Both
ilocand normal indexing are accepted as valid methods of indexing in this task.
Рішення
Дякуємо за ваш відгук!
single