unstale

pypi / datasets

datasets

What changed in datasets 4 to 5, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

14 breaking3 security45 new APIs and options2 performance12 behavior and defaults1 tooling78 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

datasets 576 changes

Breaking changes 7

  • Loading pickled pandas dataframes is removed.

    5.2.0release notes

  • Duplicate fields are rejected instead of silently overwriting data.

    5.2.0release notes

  • Rejects a non-callable generator supplied in GeneratorConfig.

    5.1.0release notes

  • External links in HDF5 files are now disallowed.

    5.1.0release notes

  • Batched mapping raises an error when output lengths do not match.

    5.0.1release notes

  • The default shuffling mechanism now uses multiple input shards; pass max_buffer_input_shards=1 to restore the old mechanism.

    5.0.0release notes

  • None values in Json columns remain real nulls instead of being converted to the string "null".

    5.0.0release notes

Security 3

  • Fixes archive path checking that allowed paths to escape into sibling directories.

    5.1.0release notes

  • Fixes arbitrary file writes caused by following symlinks during archive extraction.

    5.0.1release notes

  • Hugging Face Datasets folder-based builders allow path traversal through file_name metadata

    5.0.1security advisoryrelease notes

New APIs and options 21

  • The meshfolder builder accepts .gltf files.

    5.2.0release notes

  • Adds BioSequence as a decodable feature for biological sequence data.

    5.1.0release notes

  • Adds BioStructure as a decodable feature for biological structures.

    5.1.0release notes

  • Adds lightweight support for the FASTA file format.

    5.1.0release notes

  • Adds lightweight support for the FASTQ file format.

    5.1.0release notes

  • Adds support for GenBank files containing biological sequence data.

    5.1.0release notes

  • Adds support for mmCIF files containing macromolecular structures.

    5.1.0release notes

  • Adds lightweight support for PDB files.

    5.1.0release notes

  • Adds a strategy argument for splitting iterable datasets by node.

    5.1.0release notes

  • Datasets can now be backed by the Vortex file format.

    5.1.0release notes

  • Supports batched=True when converting a Dataset to a dictionary.

    5.0.1release notes

  • Adds support for Droid agent traces.

    5.0.1release notes

  • Adds support for Hermes traces.

    5.0.1release notes

  • Apache Iceberg format is now supported.

    5.0.0release notes

  • Streaming datasets now support composed splits.

    5.0.0release notes

  • A dataset format loader now supports CoNLL-2003, CoNLL-2000, and CoNLL-U files.

    5.0.0release notes

  • Batch rows by the values of a specified column, enabling batches such as grouped robotics episodes.

    5.0.0release notes

  • Dataset.to_sql now accepts a num_proc argument.

    5.0.0release notes

  • Agent traces can now be loaded and parsed to messages for training, using the optional teich dependency.

    5.0.0release notes

  • 3D mesh support and the MeshFolder builder are now available.

    5.0.0release notes

  • A packaged builder now supports TsFile (Apache IoTDB) in per-device wide format.

    5.0.0release notes

Performance 2

  • Image, audio, video, and other folder datasets support fast streaming decode.

    5.2.0release notes

  • JSON export of indexed datasets is faster.

    5.1.0release notes

Behavior and default changes 3

  • The 3D Mesh feature accepts .gltf files.

    5.2.0release notes

  • Importing datasets no longer imports aiohttp.

    5.1.0release notes

  • num_shards can now exceed dataset.num_shards when pushing an iterable dataset to the Hub.

    5.1.0release notes

Fixes and other changes 40

  • Default accumulation no longer causes full downloads.

    5.2.0release notes

  • Batched map works on a dataset with an index when the function returns a table.

    5.2.0release notes

  • large_string and string_view storage is cast.

    5.2.0release notes

  • Concatenation after split_dataset_by_node no longer gives every rank all the data.

    5.2.0release notes

  • Loading indices buffers is fixed.

    5.2.0release notes

  • Taking more elements than available no longer raises IndexError.

    5.2.0release notes

  • Exporting empty datasets preserves headers and document structure.

    5.2.0release notes

  • Deleting a feature updates only the touched column.

    5.2.0release notes

  • Setting a feature updates only the touched column.

    5.2.0release notes

  • Doubled quotes in qualifier values are unescaped.

    5.2.0release notes

  • Mixed-type JSON fields with slashes in their names are handled.

    5.2.0release notes

  • The JSON loader defensively recovers invalid Arrow tables.

    5.2.0release notes

  • Fixes silent data loss when num_proc is greater than num_shards.

    4.7.0, 5.2.0release notesrelease notes

  • Saving works when a batch holds more than 2GB of image or audio files.

    5.2.0release notes

  • Active iterators are preserved when threaded decoding is reconfigured.

    5.2.0release notes

  • BioSequence and BioStructure records are decoded with universal newlines.

    5.1.0release notes

  • Advances a user-supplied generator even when shuffle uses a cache hit.

    5.1.0release notes

  • Fixes handling of fixed-size binary data.

    5.1.0release notes

  • Fixes inverted spans for minus-strand multi-exon GenBank locations.

    5.1.0release notes

  • Shuffling iterable datasets now preserves source shards.

    5.1.0release notes

  • Fixes filtering iterable datasets using arrow, pandas, and polars formats.

    5.1.0release notes

  • Fixes pushing iterable datasets when their features are unknown.

    5.1.0release notes

  • Fixed-shape ArrayXD columns with nulls keep integers on the Python read path.

    5.0.1release notes

  • Validates Arrow IPC record batches.

    5.0.1release notes

  • Preserves on_bad_lines and encoding_errors on pandas 2.0–2.2.

    5.0.1release notes

  • Resuming twice no longer resets the dataloader.

    5.0.1release notes

  • Dataset fingerprints no longer depend on Arrow chunking.

    5.0.1release notes

  • Calling batch(by_column=...) no longer crashes after shard, shuffle, or split operations.

    5.0.1release notes

  • Fixes column dropping in the Arrow path for axis=1 concatenation.

    5.0.1release notes

  • Decodes Json() columns when converting a Dataset to pandas.

    5.0.1release notes

  • Removed splits are no longer left in the dataset card after pushing to the Hub.

    5.0.1release notes

  • Rebatches the Arrow source before formatting to prevent data loss when resuming.

    5.0.1release notes

  • Schema inference now works for JSON files that start with a UTF-8 BOM.

    5.0.1release notes

  • Fixes authentication for Lance.

    5.0.1release notes

  • Fixes casting a nullable LargeList to a different inner type.

    5.0.1release notes

  • Flat numeric columns with nulls remain numeric in numpy format.

    5.0.1release notes

  • Preserves nullable integer columns when exporting to JSON, CSV, or SQL.

    5.0.1release notes

  • Fixes streaming for traces.

    5.0.1release notes

  • Fixes skipping over full Arrow blocks in iterable datasets.

    5.0.0release notes

  • A fix addresses Parquet streaming hangs at the end of a script.

    5.0.0release notes

datasets 479 changes

Breaking changes 7

  • DatasetInfo no longer includes a files list.

    4.8.5release notes

  • Python 3.9 is no longer supported.

    4.6.0release notes

  • TMPDIR is treated as a strict API and failures are raised.

    4.4.2release notes

  • List is introduced as the list feature type, with an optional fixed length.

    4.0.0release notes

  • Sequence is no longer a type; it becomes a utility that returns a List or a dict depending on the subfeature.

    4.0.0release notes

  • Torchcodec replaces soundfile for audio decoding and decord for video decoding, and can stream only the requested audio or video ranges. It requires torch>=2.7.0 and FFmpeg >= 4; it is not available for Windows yet.

    4.0.0release notes

  • The trust_remote_code option is no longer supported.

    4.0.0release notes

New APIs and options 24

  • IterableDataset gains more Arrow-native iterable operations.

    4.8.0release notes

  • Adds max_shard_size; using it requires iterating twice to determine the full dataset size.

    4.8.0release notes

  • Load raw data from HF Storage Buckets using a bucket path or an hf:// path, then process it and publish the result to a Dataset Repo.

    4.8.0release notes

  • Accepts on_mixed_types="use_json" to automatically use Json() for mixed types in .from_dict(), .from_list() and .map().

    4.7.0release notes

  • Adds a feature type for storing arbitrary JSON objects, including mixed types and dictionaries with arbitrary keys, in datasets.

    4.7.0release notes

  • Adds more IterableDataset.from_* methods, including Polars LazyFrame support.

    4.6.0release notes

  • Resplits an iterable dataset's shards when possible; for Parquet, it shards per row group instead of per file.

    4.6.0release notes

  • Lance datasets infer Image, Video and Audio feature types from blobs.

    4.6.0release notes

  • Adds support for pandas 3.

    4.6.0release notes

  • Lance datasets, including metadata and manifests, and standalone .lance files are supported.

    4.5.0release notes

  • Adds support for inspect_ai eval logs.

    4.4.2release notes

  • Adds visualization support for Nifti data and replaces papaya with niivue.

    4.4.2release notes

  • Nifti1ImageWrapper now supports lazy loading.

    4.4.2release notes

  • Adds the num_channels option to select how many audio channels to use, including mono or stereo.

    4.4.0release notes

  • Adds Nifti support for loading medical imaging datasets from the Hub or disk.

    4.4.0release notes

  • from_generator now supports a custom fingerprint.

    4.3.0release notes

  • HDF5 files can now be streamed.

    4.3.0release notes

  • Features now support pyarrow's binary view.

    4.3.0release notes

  • Audio data is loaded as an AudioDecoder, which provides sample access methods; the old array and sampling_rate syntax remains supported.

    4.0.0release notes

  • Column objects provide lazy column access, including iteration over IterableDataset column values and loading a single cell without bringing the full column into memory.

    4.0.0release notes

  • Video decoding can stream only frames in the requested range.

    4.0.0release notes

  • Dataset and IterableDataset push_to_hub now accept num_proc for parallel uploads.

    4.0.0release notes

  • IterableDataset now supports pushing streaming datasets to the Hub.

    4.0.0release notes

  • Video data is loaded as a VideoDecoder, with methods to access individual frames or frames in a range.

    4.0.0release notes

Behavior and default changes 9

  • Empty structs use the Json type.

    4.8.2release notes

  • Glob patterns in archives are better supported, including patterns in hf:// archive paths.

    4.8.0release notes

  • Polars can now be imported in map().

    4.6.0release notes

  • push_to_hub() now supports datasets with Video types.

    4.6.0release notes

  • Adds basic support for more Hugging Face URLs.

    4.6.0release notes

  • JSON string columns now support null values.

    4.6.0release notes

  • Image, audio and video blobs are written as-is in Parquet, enabling cross-format Xet deduplication and faster uploads and downloads.

    4.6.0release notes

  • batch_fn is now picklable, allowing it to be used where pickling is required.

    4.3.0release notes

  • Workers keep the hffs cache while streaming, helping enable large-scale distributed dataset streaming.

    4.3.0release notes

Tooling 1

  • Adds type overloads to improve static type inference for load_dataset.

    4.4.2release notes

Fixes and other changes 38

  • Batching for table-formatted datasets is fixed.

    4.8.5release notes

  • Json() values are decoded before DataFrame.to_json() is called.

    4.8.5release notes

  • Remote files are no longer embedded when preparing downloads to parquet.

    4.8.5release notes

  • Resume state for iterable map is fixed.

    4.8.5release notes

  • JSON types are decoded before to_dict is called.

    4.8.5release notes

  • JSON types are decoded before to_list is called.

    4.8.5release notes

  • Fixed a regression when loading JSON where one file contains one object.

    4.8.4release notes

  • Support for the latest torchvision version was added.

    4.8.4release notes

  • Fixes the split_dataset_by_node step.

    4.8.3release notes

  • Fixed double yields in formatted Arrow iteration.

    4.8.1release notes

  • Improves the error message for invalid data_files pattern formats.

    4.8.0release notes

  • Fixes null filling for columns missing from JSONL data.

    4.8.0release notes

  • Fixes are included for load_dataset_builder kwargs.

    4.8.0release notes

  • Multiprocessed pushes on macOS now use spawn instead of fork, fixing a segfault.

    4.8.0release notes

  • Fixes are included for to_pandas.

    4.8.0release notes

  • Fixes are included for videofolder.

    4.8.0release notes

  • Bad files are no longer extracted.

    4.7.0release notes

  • Handles nested null types in feature alignment when using multi-process map.

    4.7.0release notes

  • Preserves features when chaining filter() on a typed IterableDataset.

    4.7.0release notes

  • Stabilizes tokenizer fingerprinting, enabling map cache reuse.

    4.7.0release notes

  • Sorts metadata extensions to make their handling deterministic.

    4.7.0release notes

  • Uses num_examples instead of len(self) for iterable dataset split information.

    4.7.0release notes

  • Removes a temporary file during push to hub.

    4.6.1release notes

  • from_generator now supports empty shards.

    4.6.0release notes

  • Fixes interleave_datasets with the all_exhausted_without_replacement strategy.

    4.6.0release notes

  • Fixes an index error involving a low but large example.

    4.5.0release notes

  • Invalid revision values are raised early when calling load_dataset.

    4.5.0release notes

  • Fixes add_column erroneously requiring the new_fingerprint parameter.

    4.4.2release notes

  • Fixes add_item erroneously requiring the new_fingerprint parameter.

    4.4.2release notes

  • Streaming retries for 504 and 429 responses are better.

    4.4.1release notes

  • Fixes an issue with columns when using a transform.

    4.4.0release notes

  • Adds support for fsspec 2025.10.0.

    4.4.0release notes

  • Fixes random seed handling in interleave_datasets.

    4.4.0release notes

  • Adds support for Python 3.14.

    4.4.0release notes

  • Fixes random seed handling on shuffle.

    4.4.0release notes

  • Resolves the ValueError raised when creating an array while avoiding a copy.

    4.4.0release notes

  • Opening an hf file is retried, improving reliability when streaming datasets.

    4.3.0release notes

  • Fixes casting image columns to Polars.

    4.3.0release notes