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

Contenido del Curso

Pandas: First Steps

Pandas: First Steps

1. Getting Started
2. Basics of Dataframes

book
Task: Barista's Favorites Coffees

Tarea

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.

Solución

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 1. Capítulo 4
toggle bottom row

book
Task: Barista's Favorites Coffees

Tarea

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.

Solución

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 1. Capítulo 4
Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
Lamentamos que algo salió mal. ¿Qué pasó?
some-alt