sample
Randomly samples a row from the data frame (with replacement).
Parameters
stream
the stream to use for randomness
fun <T> DataFrame<T>.sample(sampleSize: Int, stream: RNStreamIfc = KSLRandom.defaultRNStream()): DataFrame<T>
The data frame, is not changed. The returned data frame holds a sample of the rows, with replacement. The rows may repeat.
Return
a new data frame with the sample sampleSize rows
Parameters
T
the type of the data schema held in the data frame
sample Size
the size to generate
stream
the stream number for the source of randomness