sample Without Replacement
The data frame df, is not changed. The returned data frame holds a sample of the rows from df
Return
a new data frame with the sample from df with sampleSize rows
Parameters
the type of the data schema held in the data frame
the data frame
the size to generate
the source of randomness
A new DataColumn is created, such that the first sampleSize elements contain the sampled values. That is, x.get(0), x.get(1), ... , x.get(sampleSize-1) is the random sample without replacement
Return
the new data column of size sampleSize
Parameters
the type of the data column
the data column
the size to generate
the source of randomness
The data frame df, is not changed. The returned data frame holds a sample of the rows from df
Return
a new data frame with the sample from df with sampleSize rows
Parameters
the type of the data schema held in the data frame
the data frame
the size to generate
the stream number for the source of randomness