lance
lance copied to clipboard
Make API for importing dataset less verbose
Currently we require users to proxy through arrow APIs to create a dataset from a DataFrame or Parquet file.
i.e.
import pyarrow as pa
# Import a pandas DataFrame to Lance
tbl = pa.Table.from_pandas(my_dataframe)
lance.write_dataset(tbl, '/tmp/my_dataframe.lance')
# Import a Parquet file to Lance
parquet_dataset = ds.dataset('/tmp/hello.parquet')
lance.write_dataset(parquet_dataset, '/tmp/hello.lance')
It's preferred to hide this away and make it as simple as possible
Do we want to get this in before updating README?