Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprende Task: Finding Total Sales Per Drink | Basics of Dataframes
Pandas: First Steps
course content

Contenido del Curso

Pandas: First Steps

Pandas: First Steps

1. Getting Started
2. Basics of Dataframes

book
Task: Finding Total Sales Per Drink

Tarea

Swipe to start coding

At Café Pandasia, the manager wants to track the total sales for each coffee drink

You’ve been given a DataFrame that tracks the sales of three drinks across three days (Monday to Wednesday), and now you need to add a new column called Total Sales to the DataFrame.

  • Add a new column called Total Sales to df.
  • Total Sales should contain the sum of the sales from Monday to Wednesday for each drink.

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 2. Capítulo 6
toggle bottom row

book
Task: Finding Total Sales Per Drink

Tarea

Swipe to start coding

At Café Pandasia, the manager wants to track the total sales for each coffee drink

You’ve been given a DataFrame that tracks the sales of three drinks across three days (Monday to Wednesday), and now you need to add a new column called Total Sales to the DataFrame.

  • Add a new column called Total Sales to df.
  • Total Sales should contain the sum of the sales from Monday to Wednesday for each drink.

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 2. Capítulo 6
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