-
lance.LanceDataset.sample(num_rows: int, columns: list[str] | dict[str, str] | None =
None
, randomize_order: bool =True
, **kwargs) Table Select a random sample of data
- Parameters:
- num_rows : int¶
number of rows to retrieve
- columns : list of str, or dict of str to str default None¶
List of column names to be fetched. Or a dictionary of column names to SQL expressions. All columns are fetched if None or unspecified.
- **kwargs : dict, optional¶
see scanner() method for full parameter description.
- Returns:
table
- Return type:
Table