Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

largelisttype not supported (.from_polars()) #6834

Closed
Modexus opened this issue Apr 24, 2024 · 0 comments · Fixed by #7019
Closed

largelisttype not supported (.from_polars()) #6834

Modexus opened this issue Apr 24, 2024 · 0 comments · Fixed by #7019
Assignees

Comments

@Modexus
Copy link
Contributor

Modexus commented Apr 24, 2024

Describe the bug

The following code fails because LargeListType is not supported.
This is especially a problem for .from_polars since polars uses LargeListType.

Steps to reproduce the bug

import datasets
import polars as pl

df = pl.DataFrame({"list": [[]]})
datasets.Dataset.from_polars(df)

Expected behavior

Convert LargeListType to list.

Environment info

  • datasets version: 2.19.1.dev0
  • Platform: Linux-6.8.7-200.fc39.x86_64-x86_64-with-glibc2.38
  • Python version: 3.12.2
  • huggingface_hub version: 0.22.2
  • PyArrow version: 16.0.0
  • Pandas version: 2.1.4
  • fsspec version: 2024.3.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants