Skip to content

Commit

Permalink
Test from_polars large_list
Browse files Browse the repository at this point in the history
  • Loading branch information
albertvillanova committed Jul 3, 2024
1 parent df13687 commit 9bc5182
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_arrow_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -4846,6 +4846,15 @@ def test_categorical_dataset(tmpdir):
assert entry["animals"] == "Flamingo"


@require_polars
def test_from_polars_large_list():
import polars as pl

df = pl.from_dict({"col_1": [[1, 2], [3, 4]]})
ds = Dataset.from_polars(df)
assert isinstance(ds, Dataset)


@require_polars
def test_polars_round_trip():
ds = Dataset.from_dict({"x": [[1, 2], [3, 4, 5]], "y": ["a", "b"]})
Expand Down

0 comments on commit 9bc5182

Please sign in to comment.