Skip to content

featurebyte.BatchRequestTable.sample

sample(
size: int=10,
seed: int=1234
) -> DataFrame

Description

Returns a DataFrame that contains a random selection of rows of the batch request table based on a specified size and seed for sampling control.

Parameters

  • size: int
    default: 10
    Maximum number of rows to sample.

  • seed: int
    default: 1234
    Seed to use for random sampling.

Returns

  • DataFrame
    Sampled rows from the table.

Examples

>>> batch_request_table = catalog.get_batch_request_table("my_batch_request_table")
>>> batch_request_table.sample()