DataFrame.sample
Return a random sample of rows from DataFrame.
Last updated
Return a random sample of rows from DataFrame.
Last updated
num
Integer
The number of rows to return. Defaults to 5, which shuffles and return all rows.
5
options
Object
seed: An integer specifying the random seed that will be used to create the distribution. Ensures reproducibility of generated samples.
{ seed: 1 }