Sample

Take a sample of a dataset using a specific number of rows or a probability that each row will be selected

Parameters

Example

ds = rasgo.get.dataset(id)

ds2 = ds.sample(num_rows=1000)
ds2.preview()

Source Code

Last updated