from datasets import Dataset
dataset = Dataset.from_sql("data_table", "sqlite:///sqlite_file.db")
from_sql + small doc improvement by @mariosasko in https://github.com/huggingface/datasets/pull/5091from datasets import Dataset
from sqlite3 import connect
con = connect(...)
dataset = Dataset.from_sql("SELECT text FROM table WHERE length(text) > 100 LIMIT 10", con)
from datasets import load_dataset
ds = load_dataset("imagenet-1k").with_format("torch") # or numpy/tf/jax
ds[0]["image"]
IterableDataset.from_generator by @hamid-vakilzadeh in https://github.com/huggingface/datasets/pull/5052kwargs to Dataset.from_generator by @mariosasko in https://github.com/huggingface/datasets/pull/5049converters in CsvBuilder by @mariosasko in https://github.com/huggingface/datasets/pull/5057load_from_disk by @asofiaoliveira in https://github.com/huggingface/datasets/pull/5073ClassLabel docstring example by @alvarobartt in https://github.com/huggingface/datasets/pull/5029flatten_indices with empty indices mapping by @mariosasko in https://github.com/huggingface/datasets/pull/5043hffs by @lhoestq in https://github.com/huggingface/datasets/pull/5101Full Changelog: https://github.com/huggingface/datasets/compare/2.5.1...2.6.0
Fetched April 7, 2026