Which of the following code blocks returns a 10 percent sample of rows from DataFrame storesDF with replacement?
Which of the following code blocks returns a 10 percent sample of rows from DataFrame storesDF with replacement?
The correct code block that returns a 10 percent sample of rows from DataFrame storesDF with replacement is 'storesDF.sample(true, fraction = 0.1)'. The 'true' parameter indicates sampling with replacement, and 'fraction = 0.1' specifies that 10 percent of the rows should be sampled.
correct, an easy one