SampleRows
Spark Gem
Use the SampleRows gem to sample records by choosing a specific number or percentage of records.
Parameters
Parameter | Description |
---|---|
Sampling strategy | An option between sampling by number of records or percentage of records |
Sampling ratio | The ratio of records that you wish to sample |
Random seed | A number that lets you reproduce the random sample |
With replacement | When enabled, this allows records to be returned to the sample pool after selection |