Ultimate access to all questions.
Upgrade Now 🚀
Sign in to unlock AI tutor
Which of the following code blocks returns a 10% sample of rows from DataFrame storesDF with replacement?
storesDF
A
storesDF.sample(true)
B
storesDF.sample(true, fraction = 0.1)
C
storesDF.sample(true, fraction = 0.15)
D
storesDF.sampleBy(fraction = 0.1)
E
storesDF.sample(false, fraction = 0.1)