lance.LanceDataset.take(indices: list[int] | Array, columns: list[str] | dict[str, str] | None = None) Table

Select rows of data by index.

Parameters:
indices : Array or array-like

indices of rows to select in the dataset.

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.

Returns:

table

Return type:

pyarrow.Table