fun DataFrame.sampleN(n: Int, replace: Boolean = false): DataFrame
Select random rows from a table. If receiver is grouped, sampling is done per group.
n - Number of rows to sample.
n
replace - Sample with or without replacement
replace