ray.data.block.BlockAccessor.sample#

BlockAccessor.sample(n_samples: int, sort_key: SortKey) Block[source]#

Return a random sample of items from this block.