unstale

pypi / datasets

datasets

What changed in datasets 5, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-20.

5 breaking3 security20 new APIs and options1 performance2 behavior and defaults25 fixes and other

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

npx @unstale/cli init

@unstale/cli on npm

datasets 556 changes

Breaking changes 5

  • 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 20

  • 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 1

Behavior and default changes 2

  • 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 25

  • 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