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