Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre Task: Randomly Select Customer Orders for Quality Check | Fetching Data from DataFrames
Pandas: First Steps

Glissez pour afficher le menu

book
Task: Randomly Select Customer Orders for Quality Check

Tâche

Swipe to start coding

The Café has announced a special prize draw! Three lucky customers will win a free coupon for their next coffee order.

The café has collected data from 20 customers who made purchases that day, and they now want to randomly select 3 winners for the draw.

  • Randomly select 3 orders from the DataFrame df and store the result in a new variable called winners.

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 6
single

single

Demandez à l'IA

expand

Demandez à l'IA

ChatGPT

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

close

Awesome!

Completion rate improved to 2.7

book
Task: Randomly Select Customer Orders for Quality Check

Tâche

Swipe to start coding

The Café has announced a special prize draw! Three lucky customers will win a free coupon for their next coffee order.

The café has collected data from 20 customers who made purchases that day, and they now want to randomly select 3 winners for the draw.

  • Randomly select 3 orders from the DataFrame df and store the result in a new variable called winners.

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 !

close

Awesome!

Completion rate improved to 2.7

Glissez pour afficher le menu

some-alt