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

bookTask: Randomly Select Customer Orders for Quality Check

Task

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

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 3. ChapterΒ 6
single

single

Ask AI

expand

Ask AI

ChatGPT

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

Suggested prompts:

Summarize this chapter

Explain the code in file

Explain why file doesn't solve the task

close

Awesome!

Completion rate improved to 2.7

bookTask: Randomly Select Customer Orders for Quality Check

Swipe to show menu

Task

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

single

some-alt