← All notes

Hugging Face Datasets: map and filter

Short answer

Dataset.map transforms rows; filter and select drop or keep them. Processing returns a new dataset and can run in batches or multiple processes. [S1]

Points

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted).

Source notice: Hugging Face Datasets documentation, Apache License 2.0 (https://github.com/huggingface/datasets/blob/main/LICENSE).

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Hugging Face, Datasets docs: Process, Apache-2.0 (huggingface/datasets docs); Hugging Face, Know your dataset, Apache-2.0 (huggingface/datasets docs).

Cite this

Permanent ID: iil:note:yvkcydga

iinventedlight. 2026. "Hugging Face Datasets: map, filter, select, and other row and column operations." iinventedlight Library, iil:note:yvkcydga, version of 2026-11-04. https://iinventedlight.com/library/notes/hf-datasets-map-filter/. License: CC-BY-4.0.

@misc{iil_note_yvkcydga,
  author = {{iinventedlight}},
  title = {{Hugging Face Datasets: map, filter, select, and other row and column operations}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-04},
  url = {https://iinventedlight.com/library/notes/hf-datasets-map-filter/},
  note = {Permanent ID iil:note:yvkcydga. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com.

For language models and agents: start at /llms.txt. This page in Markdown: /library/notes/hf-datasets-map-filter.md.