datasets breaking changes
Updated December 4, 2026
On this page
Latest version 5.2.0, released November 9, 2026. Source repository
Its 4.6.0 release drops Python 3.9. Python end of life dates.
- From 4.8.5 to 5.2.0: 35 breaking changes in 4 versions.
- From 2.0.0 to 5.2.0: 615 breaking changes in 29 versions.
datasets 5.2.0 breaking changes
- Removed
Loading pickled pandas dataframes was removed for security reasons (CVE-2026-57845). Code that relies on loading such pickles must convert the data to another format first. github.com - Removed
datasets.packaged_modules.pandas.pandas.Key
datasets.packaged_modules.pandas.pandas.Key was removed in datasets 5.2.0 pypi.org - Behavior changed
Duplicate WebDataset fields are now rejected instead of silently overwriting earlier data. Code that relied on the overwrite must rename or remove the duplicate fields. github.com - Signature changed
datasets.arrow_writer.get_json_field_path_from_pyarrow_json_error
Was def get_json_field_path_from_pyarrow_json_error(err_str: str) -> list[str]; now def get_json_field_path_from_pyarrow_json_error(err_str: str, *, examples: Iterable[Any] | None = None) -> list[str | int]. pypi.org - Signature changed
datasets.Features.__delitem__
Was __delitem__; now def __delitem__(self, column_name: str). pypi.org - Signature changed
datasets.Features.__setitem__
Was __setitem__; now def __setitem__(self, column_name: str, feature: FeatureType). pypi.org - Signature changed
datasets.IterableDataset.decode
Was def decode(self, enable: bool = True, num_threads: int = 0) -> IterableDataset; now def decode(self, enable: bool = True, num_threads: Optional[int] = None) -> IterableDataset. pypi.org - Signature changed
datasets.packaged_modules.folder_based_builder.folder_based_builder.FolderBasedBuilderConfig.__init__
Was def __init__(self, name: str = 'default', version: Optional[Union[utils.Version, str]] = utils.Version('0.0.0'), data_dir: Optional[str] = None, data_files: Optional[Union[DataFilesDict, DataFilesPatternsDict]] = None, description... pypi.org - Signature changed
datasets.packaged_modules.json.json.get_json_field_path_from_pyarrow_json_error
Was def get_json_field_path_from_pyarrow_json_error(err_str: str) -> list[str]; now def get_json_field_path_from_pyarrow_json_error(err_str: str, *, examples: Iterable[Any] | None = None) -> list[str | int]. pypi.org - Signature changed
datasets.utils.json.get_json_field_path_from_pyarrow_json_error
Was def get_json_field_path_from_pyarrow_json_error(err_str: str) -> list[str]; now def get_json_field_path_from_pyarrow_json_error(err_str: str, *, examples: Iterable[Any] | None = None) -> list[str | int]. pypi.org
datasets 5.1.0 breaking changes
- Removed
datasets.io.parquet.require_storage_embed
datasets.io.parquet.require_storage_embed was removed in datasets 5.1.0 pypi.org - Behavior changed
The release disallows HDF5 external links, so HDF5 files that rely on them may no longer load and must be changed before use. github.com - Behavior changed
Dataset.shuffle
The user-supplied generator in Dataset.shuffle is now advanced even when the result comes from the cache, so later random draws from that generator can differ from before. github.com - Behavior changed
GeneratorConfig
A non-callable generator passed to GeneratorConfig is now rejected with an error, so code passing one must supply a callable. github.com - Configuration changed
Httpx is now imported from huggingface_hub, which requires huggingface_hub 1.31.0 or later to be installed. github.com - Signature changed
datasets.distributed.split_dataset_by_node
Was def split_dataset_by_node(dataset: DatasetType, rank: int, world_size: int) -> DatasetType; now def split_dataset_by_node(dataset: DatasetType, rank: int, world_size: int, strategy: Literal['auto', 'shards', 'examples'] = 'auto') ->... pypi.org - Signature changed
datasets.iterable_dataset.DistributedConfig.__init__
Was def __init__(self, rank: int, world_size: int) -> None; now def __init__(self, rank: int, world_size: int, strategy: Literal[auto, shards, examples] = 'auto') -> None. pypi.org - Signature changed
datasets.iterable_dataset.RepeatExamplesIterable.features
Was features: Optional[Features]; now features. pypi.org - Signature changed
datasets.iterable_dataset.RepeatExamplesIterable.is_typed
Was is_typed: bool; now is_typed. pypi.org - Signature changed
datasets.iterable_dataset.RepeatExamplesIterable.iter_arrow
Was iter_arrow: Optional[Callable[[], Iterator[tuple[Key, pa.Table]]]]; now iter_arrow. pypi.org
And 1 more in this version. Sign up to see every change
datasets 5.0.1 breaking changes
- Removed
datasets.packaged_modules.webdataset.webdataset.SINGLE_FILE_COMPRESSION_EXTENSION_TO_PROTOCOL
datasets.packaged_modules.webdataset.webdataset.SINGLE_FILE_COMPRESSION_EXTENSION_TO_PROTOCOL was removed in datasets 5.0.1 pypi.org - Behavior changed
Dataset.to_pandas
Dataset.to_pandas() now decodes Json() columns into Python objects instead of leaving them undecoded. Code that expects the old raw values must be updated. github.com - Behavior changed
IterableDataset.map
Batched IterableDataset.map now raises an error when the function returns a different number of rows than it received. Code that relied on mismatched lengths passing silently must be fixed. github.com
datasets 5.0.0 breaking changes
- Removed
datasets.load.FolderBasedBuilder
datasets.load.FolderBasedBuilder was removed in datasets 5.0.0 pypi.org - Behavior changed
IterableDataset.shuffle
The default shuffle buffer now reads from multiple input shards, which changes the order of shuffled examples. To keep the old mechanism, pass max_buffer_input_shards=1 to IterableDataset.shuffle(). github.com - Behavior changed
Json
None values in Json() columns are now stored as a true null instead of the string "null". Code that expects the string "null" must be updated. github.com - Signature changed
datasets.builder.ArrowExamplesIterable.__init__
Was def __init__(self, generate_tables_fn: Callable[..., Iterator[tuple[Key, pa.Table]]], kwargs: dict, generate_more_kwargs_fn: Optional[Callable[..., Iterator[dict]]] = None); now def __init__(self, generate_tables_fn: Callable[... pypi.org - Signature changed
datasets.builder.ExamplesIterable.__init__
Was def __init__(self, generate_examples_fn: Callable[..., Iterator[tuple[Key, dict]]], kwargs: dict, generate_more_kwargs_fn: Optional[Callable[..., Iterator[dict]]] = None); now def __init__(self, generate_examples_fn: Callable[... pypi.org - Signature changed
datasets.Dataset.batch
Was def batch(self, batch_size: int, drop_last_batch: bool = False, num_proc: Optional[int] = None, new_fingerprint: Optional[str] = None) -> Dataset; now def batch(self, batch_size: Optional[int] = None, by_column: Optional[Union[str... pypi.org - Signature changed
datasets.Dataset.to_sql
Was def to_sql(self, name: str, con: Union[str, sqlalchemy.engine.Connection, sqlalchemy.engine.Engine, sqlite3.Connection], batch_size: Optional[int] = None, **sql_writer_kwargs) -> int; now def to_sql(self, name: str, con: Union[str... pypi.org - Signature changed
datasets.iterable_dataset.MappedExamplesIterable.__init__
Was def __init__(self, ex_iterable: _BaseExamplesIterable, function: Callable, with_indices: bool = False, input_columns: Optional[list[str]] = None, batched: bool = False, batch_size: Optional[int] = 1000, drop_last_batch: bool = False... pypi.org - Signature changed
datasets.IterableDataset.batch
Was def batch(self, batch_size: int, drop_last_batch: bool = False) -> IterableDataset; now def batch(self, batch_size: Optional[int] = None, by_column: Optional[Union[str, list[str]]] = None, drop_last_batch: bool = False) ->... pypi.org - Signature changed
datasets.IterableDataset.shuffle
Was def shuffle(self, seed=None, generator: Optional[np.random.Generator] = None, buffer_size: int = 1000) -> IterableDataset; now def shuffle(self, seed=None, generator: Optional[np.random.Generator] = None, buffer_size: int = 1000... pypi.org
And 1 more in this version. Sign up to see every change
datasets 4.8.5 breaking changes
- Removed
datasets.builder.get_size_checksum_dict
datasets.builder.get_size_checksum_dict was removed in datasets 4.8.5 pypi.org - Removed
datasets.builder.PostProcessedInfo
datasets.builder.PostProcessedInfo was removed in datasets 4.8.5 pypi.org - Removed
datasets.DatasetBuilder.download_post_processing_resources
DatasetBuilder.download_post_processing_resources was removed in datasets 4.8.5 pypi.org - Signature changed
datasets.arrow_dataset.embed_table_storage
Was def embed_table_storage(table: pa.Table, token_per_repo_id=None); now def embed_table_storage(table: pa.Table, token_per_repo_id=None, local_files: bool = True, remote_files: bool = True). pypi.org - Signature changed
datasets.arrow_writer.embed_table_storage
Was def embed_table_storage(table: pa.Table, token_per_repo_id=None); now def embed_table_storage(table: pa.Table, token_per_repo_id=None, local_files: bool = True, remote_files: bool = True). pypi.org - Signature changed
datasets.arrow_writer.find_mixed_struct_types_field_paths
Was def find_mixed_struct_types_field_paths(examples: list, allow_root=False) -> list[str]; now def find_mixed_struct_types_field_paths(examples: list, allow_root=False) -> list[list[str]]. pypi.org - Signature changed
datasets.arrow_writer.get_json_field_path_from_pyarrow_json_error
Was def get_json_field_path_from_pyarrow_json_error(err_str: str) -> str; now def get_json_field_path_from_pyarrow_json_error(err_str: str) -> list[str]. pypi.org - Signature changed
datasets.arrow_writer.get_json_field_paths_from_feature
Was def get_json_field_paths_from_feature(feature: FeatureType) -> list[str]; now def get_json_field_paths_from_feature(feature: FeatureType) -> list[list[str]]. pypi.org - Signature changed
datasets.arrow_writer.insert_json_field_path
Was def insert_json_field_path(json_field_paths: list[str], json_field_path: str) -> None; now def insert_json_field_path(json_field_paths: list[list[str]], json_field_path: list[str]) -> None. pypi.org - Signature changed
datasets.arrow_writer.json_encode_field
Was def json_encode_field(example: Any, json_field_path: str) -> Any; now def json_encode_field(example: Any, json_field_path: list[str]) -> Any. pypi.org
And 29 more in this version. Sign up to see every change
datasets 4.8.3 breaking changes
- Signature changed
datasets.iterable_dataset.FormattedExamplesIterable.__init__
Was def __init__(self, ex_iterable: _BaseExamplesIterable, formatting: Optional[FormattingConfig], features: Optional[Features], token_per_repo_id: dict[str, Union[str, bool, None]]); now def __init__(self, ex_iterable... pypi.org - Signature changed
datasets.iterable_dataset.RebatchedArrowExamplesIterable.__init__
Was def __init__(self, ex_iterable: _BaseExamplesIterable, batch_size: Optional[int], drop_last_batch: bool = False); now def __init__(self, ex_iterable: _BaseExamplesIterable, batch_size: Optional[int], drop_last_batch: bool = False... pypi.org - Signature changed
datasets.Json.cast_storage
Was def cast_storage(self, storage: Union[pa.Array]) -> pa.Int64Array; now def cast_storage(self, storage: Union[pa.Array]) -> pa.JsonArray. pypi.org
Older versions
24 older versions, each with its first changes. Sign up to see every change
Show 24 older versions
datasets 4.8.0 breaking changes
- Removed
datasets.dataset_dict.asdict
datasets.dataset_dict.asdict was removed in datasets 4.8.0 pypi.org - Removed
datasets.dataset_dict.DatasetInfo
datasets.dataset_dict.DatasetInfo was removed in datasets 4.8.0 pypi.org
And 21 more in this version.
datasets 4.7.0 breaking changes
- Signature changed
datasets.arrow_dataset.ArrowWriter.__init__
Was def __init__(self, schema: Optional[pa.Schema] = None, features: Optional[Features] = None, path: Optional[str] = None, stream: Optional[pa.NativeFile] = None, fingerprint: Optional[str] = None, writer_batch_size: Optional[int] = None... pypi.org - Signature changed
datasets.arrow_dataset.OptimizedTypedSequence.__init__
Was def __init__(self, data, type: Optional[FeatureType] = None, try_type: Optional[FeatureType] = None, col: Optional[str] = None, optimized_int_type: Optional[FeatureType] = None); now def __init__(self, data, type: Optional[FeatureType]... pypi.org
And 6 more in this version.
datasets 4.6.0 breaking changes
- Removed
The release no longer supports Python 3.9; users on Python 3.9 must upgrade Python to keep using this version. github.com - Removed
datasets.config.ARCHIVED_DATA_FILES_MAX_NUMBER_FOR_MODULE_INFERENCE
datasets.config.ARCHIVED_DATA_FILES_MAX_NUMBER_FOR_MODULE_INFERENCE was removed in datasets 4.6.0 pypi.org
And 14 more in this version.
datasets 4.5.0 breaking changes
- Removed
datasets.load.ALL_ALLOWED_EXTENSIONS
datasets.load.ALL_ALLOWED_EXTENSIONS was removed in datasets 4.5.0 pypi.org
datasets 4.4.2 breaking changes
- Removed
datasets.arrow_dataset.ArrowWriter.check_duplicate_keys
ArrowWriter.check_duplicate_keys was removed in datasets 4.4.2 pypi.org - Removed
datasets.arrow_writer.DuplicatedKeysError
datasets.arrow_writer.DuplicatedKeysError was removed in datasets 4.4.2 pypi.org
And 20 more in this version.
datasets 4.4.0 breaking changes
- Signature changed
datasets.Audio.__init__
Was def __init__(self, sampling_rate: Optional[int] = None, decode: bool = True, stream_index: Optional[int] = None, id: Optional[str] = None) -> None; now def __init__(self, sampling_rate: Optional[int] = None, decode: bool = True... pypi.org
datasets 4.3.0 breaking changes
- Configuration changed
The distributed streaming improvements only take full effect with huggingface_hub>=1.1.0, so users relying on them must upgrade that dependency. github.com - Signature changed
datasets.Dataset.from_generator
Was @staticmethod def from_generator(generator: Callable, features: Optional[Features] = None, cache_dir: str = None, keep_in_memory: bool = False, gen_kwargs: Optional[dict] = None, num_proc: Optional[int] = None, split: NamedSplit =... pypi.org
And 2 more in this version.
datasets 4.2.0 breaking changes
- Removed
datasets.formatting.torch_formatter.map_nested
datasets.formatting.torch_formatter.map_nested was removed in datasets 4.2.0 pypi.org - Removed
datasets.utils.hub.check_auth
datasets.utils.hub.check_auth was removed in datasets 4.2.0 pypi.org
And 4 more in this version.
datasets 4.1.1 breaking changes
- Signature changed
datasets.iterable_dataset.BufferShuffledExamplesIterable.iter_arrow
Was iter_arrow: Optional[Callable[[], Iterator[tuple[Key, pa.Table]]]]; now iter_arrow. pypi.org - Signature changed
datasets.iterable_dataset.CyclingMultiSourcesExamplesIterable.iter_arrow
Was iter_arrow: Optional[Callable[[], Iterator[tuple[Key, pa.Table]]]]; now iter_arrow. pypi.org
datasets 4.1.0 breaking changes
- Removed
datasets.arrow_writer.get_writer_batch_size
datasets.arrow_writer.get_writer_batch_size was removed in datasets 4.1.0 pypi.org - Removed
datasets.filesystems.compression.BaseCompressedFileFileSystem.extension
BaseCompressedFileFileSystem.extension was removed in datasets 4.1.0 pypi.org
And 11 more in this version.
datasets 4.0.0 breaking changes
- Removed
Loading scripts were removed altogether, so trust_remote_code is no longer supported. Datasets that depend on scripts must be converted to a data-file format. github.com - Removed
datasets.arrow_dataset.Sequence
datasets.arrow_dataset.Sequence was removed in datasets 4.0.0 pypi.org
And 82 more in this version.
datasets 3.6.0 breaking changes
- Configuration changed
aiohttp is no longer installed as a direct dependency of datasets. Code that relied on it being installed alongside datasets must now install aiohttp itself. github.com - Signature changed
datasets.Audio.encode_example
Was def encode_example(self, value: Union[str, bytes, dict]) -> dict; now def encode_example(self, value: Union[str, bytes, bytearray, dict]) -> dict. pypi.org
And 4 more in this version.
datasets 3.5.1 breaking changes
- Removed
datasets.formatting.formatting.config
datasets.formatting.formatting.config was removed in datasets 3.5.1 pypi.org - Removed
datasets.Pdf.encode_pdfplumber_pdf
Pdf.encode_pdfplumber_pdf was removed in datasets 3.5.1 pypi.org
And 4 more in this version.
datasets 3.4.0 breaking changes
- Removed
datasets.builder.DataFilesDict.filter_extensions
DataFilesDict.filter_extensions was removed in datasets 3.4.0 pypi.org - Removed
datasets.config.DECORD_AVAILABLE
datasets.config.DECORD_AVAILABLE was removed in datasets 3.4.0 pypi.org
And 27 more in this version.
datasets 3.3.0 breaking changes
- Removed
datasets.formatting.polars_formatter.TensorFormatter.recursive_tensorize
TensorFormatter.recursive_tensorize was removed in datasets 3.3.0 pypi.org - Removed
datasets.formatting.PolarsFormatter.recursive_tensorize
PolarsFormatter.recursive_tensorize was removed in datasets 3.3.0 pypi.org
And 19 more in this version.
datasets 3.2.0 breaking changes
- Signature changed
datasets.Dataset.push_to_hub
Was def push_to_hub(self, repo_id: str, config_name: str = 'default', set_default: Optional[bool] = None, split: Optional[str] = None, data_dir: Optional[str] = None, commit_message: Optional[str] = None, commit_description: Optional[str]... pypi.org - Signature changed
datasets.DatasetDict.push_to_hub
Was def push_to_hub(self, repo_id, config_name: str = 'default', set_default: Optional[bool] = None, data_dir: Optional[str] = None, commit_message: Optional[str] = None, commit_description: Optional[str] = None, private: Optional[bool] =... pypi.org
And 2 more in this version.
datasets 3.1.0 breaking changes
- Removed
datasets.builder.ArrowExamplesIterable.n_shards
ArrowExamplesIterable.n_shards was removed in datasets 3.1.0 pypi.org - Removed
datasets.builder.ExamplesIterable.n_shards
ExamplesIterable.n_shards was removed in datasets 3.1.0 pypi.org
And 51 more in this version.
datasets 3.0.2 breaking changes
- Removed
datasets.features.feature
datasets.features.feature was removed in datasets 3.0.2 pypi.org - Removed
datasets.load.check_auth
datasets.load.check_auth was removed in datasets 3.0.2 pypi.org
And 8 more in this version.
datasets 3.0.1 breaking changes
- Removed
datasets.utils.cache
datasets.utils.cache was removed in datasets 3.0.1 pypi.org - Behavior changed
File grouping by filename prefix into splits was changed to align with WebDataset, so existing data layouts may be split differently. Check split contents after upgrading. github.com
And 1 more in this version.
datasets 3.0.0 breaking changes
- Removed
Support for deprecated Apache Beam datasets was removed. github.com - Removed
datasets.arrow_dataset.DatasetInfoMixin.task_templates
DatasetInfoMixin.task_templates was removed in datasets 3.0.0 pypi.org
And 177 more in this version.
datasets 2.21.0 breaking changes
- Removed
datasets.download.download_manager.ArchiveIterable.kwargs
ArchiveIterable.kwargs was removed in datasets 2.21.0 pypi.org - Removed
datasets.download.download_manager.FilesIterable.kwargs
FilesIterable.kwargs was removed in datasets 2.21.0 pypi.org
And 23 more in this version.
datasets 2.20.0 breaking changes
- Removed
datasets.commands.convert_to_parquet.delete_files
datasets.commands.convert_to_parquet.delete_files was removed in datasets 2.20.0 pypi.org - Removed
datasets.commands.convert_to_parquet.infer_pr
datasets.commands.convert_to_parquet.infer_pr was removed in datasets 2.20.0 pypi.org
And 18 more in this version.
datasets 2.19.2 breaking changes
- Configuration changed
The package now requires requests 2.32.1 or later, so environments with an older requests must upgrade it. github.com - Configuration changed
The package now requires Pillow 9.4.0 or later, so environments with an older Pillow must upgrade it. github.com
datasets 2.0.0 breaking changes
- Removed
Module namespace was cleaned up, removing some previously available names. Code importing removed names must be updated. github.com - Removed
Methods and parameters deprecated earlier were removed in preparation for v2.0. Code using them will fail and must be updated. github.com
And 206 more in this version.
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.