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

Glissez pour afficher le menu

book
Task: Extract Sales Data For Analysis

Tâche

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 desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 3. Chapitre 9

Demandez à l'IA

expand
ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

book
Task: Extract Sales Data For Analysis

Tâche

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 desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 3. Chapitre 9
Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Nous sommes désolés de vous informer que quelque chose s'est mal passé. Qu'est-il arrivé ?
some-alt