Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Task: Extract Sales Data For Analysis | Fetching Data from DataFrames
Pandas: First Steps

Swipe to show menu

book
Task: Extract Sales Data For Analysis

Task

Swipe to start coding

At the CafΓ©, the manager wants to investigate whether being a Loyalty Member affects how much customers spend.

You've been tasked with seleting and showing only the data from the two relevant columns. This will help the manager easily analyze the relationship between spending and loyalty membership.

  • Extract the Amount Spent and Loyalty Member columns from the DataFrame df.
  • Store them into a new variable called spending_vs_loyalty.

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Β 9
We're sorry to hear that something went wrong. What happened?

Ask AI

expand
ChatGPT

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

book
Task: Extract Sales Data For Analysis

Task

Swipe to start coding

At the CafΓ©, the manager wants to investigate whether being a Loyalty Member affects how much customers spend.

You've been tasked with seleting and showing only the data from the two relevant columns. This will help the manager easily analyze the relationship between spending and loyalty membership.

  • Extract the Amount Spent and Loyalty Member columns from the DataFrame df.
  • Store them into a new variable called spending_vs_loyalty.

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Β 9
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
We're sorry to hear that something went wrong. What happened?
some-alt