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

Kursinhalt

Pandas: First Steps

Pandas: First Steps

1. Getting Started
2. Basics of Dataframes

book
Task: Finding Total Sales Per Drink

Aufgabe

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.

Lösung

Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 2. Kapitel 6
toggle bottom row

book
Task: Finding Total Sales Per Drink

Aufgabe

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.

Lösung

Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 2. Kapitel 6
Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
Wir sind enttäuscht, dass etwas schief gelaufen ist. Was ist passiert?
some-alt