Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Task: Extracting the Total Profit | Fetching Data from DataFrames
Pandas: First Steps

Swipe to show menu

book
Task: Extracting the Total Profit

Task

Swipe to start coding

It's the end of the day at the CafΓ© and the manager wants to know the total profit of the sales today.

You've been given the sales data in the form of the DataFrame df.

  • Extract the Amount Paid column from the df and store it in a new variable called amounts.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 3. ChapterΒ 8
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

close

Awesome!

Completion rate improved to 2.7

book
Task: Extracting the Total Profit

Task

Swipe to start coding

It's the end of the day at the CafΓ© and the manager wants to know the total profit of the sales today.

You've been given the sales data in the form of the DataFrame df.

  • Extract the Amount Paid column from the df and store it in a new variable called amounts.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

close

Awesome!

Completion rate improved to 2.7

Swipe to show menu

some-alt