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

Scorri per mostrare il menu

book
Task: Barista's Favorites Coffees

Compito

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.

Soluzione

Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 1. Capitolo 4
Siamo spiacenti che qualcosa sia andato storto. Cosa è successo?

Chieda ad AI

expand
ChatGPT

Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione

book
Task: Barista's Favorites Coffees

Compito

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.

Soluzione

Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 1. Capitolo 4
Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Siamo spiacenti che qualcosa sia andato storto. Cosa è successo?
some-alt