get_first_rows
Retrieve the initial rows from a specified dataset split on Hugging Face. Input the dataset identifier, configuration, and split name to access the first few rows for analysis or preview.
Instructions
Get first rows from a Hugging Face dataset split
Input Schema
Name | Required | Description | Default |
---|---|---|---|
auth_token | No | Hugging Face auth token for private/gated datasets | |
config | Yes | Dataset configuration/subset name. Use get_info to list available configs | |
dataset | Yes | Hugging Face dataset identifier in the format owner/dataset | |
split | Yes | Dataset split name. Splits partition the data for training/evaluation |
Input Schema (JSON Schema)
{
"properties": {
"auth_token": {
"description": "Hugging Face auth token for private/gated datasets",
"optional": true,
"type": "string"
},
"config": {
"description": "Dataset configuration/subset name. Use get_info to list available configs",
"examples": [
"default",
"en",
"es"
],
"type": "string"
},
"dataset": {
"description": "Hugging Face dataset identifier in the format owner/dataset",
"examples": [
"ylecun/mnist",
"stanfordnlp/imdb"
],
"pattern": "^[^/]+/[^/]+$",
"type": "string"
},
"split": {
"description": "Dataset split name. Splits partition the data for training/evaluation",
"examples": [
"train",
"validation",
"test"
],
"type": "string"
}
},
"required": [
"dataset",
"config",
"split"
],
"type": "object"
}