daft.read_lance

Contents

daft.read_lance#

read_lance(url: str, io_config: Optional[IOConfig] = None) DataFrame[source]#

Create a DataFrame from a LanceDB table

Note

This function requires the use of LanceDB, which is the Python library for the LanceDB project.

To ensure that this is installed with Daft, you may install: pip install getdaft[lance]

Example:

>>> df = daft.read_lance("s3://my-lancedb-bucket/data/")
>>> df.show()
Parameters:
  • url – URL to the LanceDB table (supports remote URLs to object stores such as s3:// or gs://)

  • io_config – A custom IOConfig to use when accessing LanceDB data. Defaults to None.

Returns:

a DataFrame with the schema converted from the specified LanceDB table

Return type:

DataFrame