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

Svep för att visa menyn

book
Task: Randomly Select Customer Orders for Quality Check

Uppgift

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.

Lösning

Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 3. Kapitel 6
Vi beklagar att något gick fel. Vad hände?

Fråga AI

expand
ChatGPT

Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal

book
Task: Randomly Select Customer Orders for Quality Check

Uppgift

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.

Lösning

Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 3. Kapitel 6
Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Vi beklagar att något gick fel. Vad hände?
some-alt