From ff747bfe60f575de5b1b7188d421bfafe9b6e54d Mon Sep 17 00:00:00 2001 From: Hajer Mabrouk Date: Thu, 20 Nov 2025 23:11:23 +0100 Subject: [PATCH] Add quickstart example to datasets README --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 0b70a39d098..4e03e8a75d2 100644 --- a/README.md +++ b/README.md @@ -70,6 +70,16 @@ If you plan to use 🤗 Datasets with PyTorch (2.0+), TensorFlow (2.6+) or JAX ( 🤗 Datasets is also well integrated with data frameworks like PyArrow, Pandas, Polars and Spark, which should be installed separately. For more details on using the library with these frameworks, check the quick start page in the documentation: https://huggingface.co/docs/datasets/quickstart +## Quickstart + +Load your first dataset in three lines of code: + +```python +from datasets import load_dataset + +dataset = load_dataset("imdb") +print(dataset["train"][0]) + # Usage