lance icon indicating copy to clipboard operation
lance copied to clipboard

Make API for importing dataset less verbose

Open jaichopra opened this issue 4 years ago • 1 comments

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

jaichopra avatar Dec 01 '22 04:12 jaichopra

Do we want to get this in before updating README?

eddyxu avatar Dec 01 '22 04:12 eddyxu