Dataset Viewer
Auto-converted to Parquet Duplicate
task_id
stringlengths
20
23
difficulty
int64
1
4
difficulty_tier
stringclasses
3 values
n_turns
int64
2
20
source_agent
stringclasses
2 values
messages
listlengths
7
43
tools
listlengths
1
1
0032_386_32386426_qa_2
3
medium
7
bash
[ { "role": "system", "content": "You are an autonomous data-analysis agent operating in a sandboxed Linux container. Your only tool is `bash`. The dataset files are in /home/user/input/. Python 3 + pandas + numpy + scikit-learn + scipy are pre-installed.\n\nWork the problem step-by-step: first inspect the da...
[ { "type": "function", "function": { "name": "bash", "description": "Run a shell command in the sandbox and return its combined stdout+stderr. The shell is non-stateful between calls (each call is a fresh `bash -c`). Use it to explore files (ls, head, cat), run Python (`python3 -c ...`), and writ...
0079_726_79726462_qa_1
2
medium
3
bash
[ { "role": "system", "content": "You are an autonomous data-analysis agent operating in a sandboxed Linux container. Your only tool is `bash`. The dataset files are in /home/user/input/. Python 3 + pandas + numpy + scikit-learn + scipy are pre-installed.\n\nWork the problem step-by-step: first inspect the da...
[ { "type": "function", "function": { "name": "bash", "description": "Run a shell command in the sandbox and return its combined stdout+stderr. The shell is non-stateful between calls (each call is a fresh `bash -c`). Use it to explore files (ls, head, cat), run Python (`python3 -c ...`), and writ...
0058_272_58272349_qa_4
1
easy
3
bash
[ { "role": "system", "content": "You are an autonomous data-analysis agent operating in a sandboxed Linux container. Your only tool is `bash`. The dataset files are in /home/user/input/. Python 3 + pandas + numpy + scikit-learn + scipy are pre-installed.\n\nWork the problem step-by-step: first inspect the da...
[ { "type": "function", "function": { "name": "bash", "description": "Run a shell command in the sandbox and return its combined stdout+stderr. The shell is non-stateful between calls (each call is a fresh `bash -c`). Use it to explore files (ls, head, cat), run Python (`python3 -c ...`), and writ...
0108_986_108986276_qa_3
2
medium
3
bash
[ { "role": "system", "content": "You are an autonomous data-analysis agent operating in a sandboxed Linux container. Your only tool is `bash`. The dataset files are in /home/user/input/. Python 3 + pandas + numpy + scikit-learn + scipy are pre-installed.\n\nWork the problem step-by-step: first inspect the da...
[ { "type": "function", "function": { "name": "bash", "description": "Run a shell command in the sandbox and return its combined stdout+stderr. The shell is non-stateful between calls (each call is a fresh `bash -c`). Use it to explore files (ls, head, cat), run Python (`python3 -c ...`), and writ...
0135_720_135720396_qa_1
3
medium
6
bash
[ { "role": "system", "content": "You are an autonomous data-analysis agent operating in a sandboxed Linux container. Your only tool is `bash`. The dataset files are in /home/user/input/. Python 3 + pandas + numpy + scikit-learn + scipy are pre-installed.\n\nWork the problem step-by-step: first inspect the da...
[ { "type": "function", "function": { "name": "bash", "description": "Run a shell command in the sandbox and return its combined stdout+stderr. The shell is non-stateful between calls (each call is a fresh `bash -c`). Use it to explore files (ls, head, cat), run Python (`python3 -c ...`), and writ...
0130_285_130285411_qa_1
1
easy
4
bash
[ { "role": "system", "content": "You are an autonomous data-analysis agent operating in a sandboxed Linux container. Your only tool is `bash`. The dataset files are in /home/user/input/. Python 3 + pandas + numpy + scikit-learn + scipy are pre-installed.\n\nWork the problem step-by-step: first inspect the da...
[ { "type": "function", "function": { "name": "bash", "description": "Run a shell command in the sandbox and return its combined stdout+stderr. The shell is non-stateful between calls (each call is a fresh `bash -c`). Use it to explore files (ls, head, cat), run Python (`python3 -c ...`), and writ...
0123_500_123500011_qa_3
1
easy
3
bash
[ { "role": "system", "content": "You are an autonomous data-analysis agent operating in a sandboxed Linux container. Your only tool is `bash`. The dataset files are in /home/user/input/. Python 3 + pandas + numpy + scikit-learn + scipy are pre-installed.\n\nWork the problem step-by-step: first inspect the da...
[ { "type": "function", "function": { "name": "bash", "description": "Run a shell command in the sandbox and return its combined stdout+stderr. The shell is non-stateful between calls (each call is a fresh `bash -c`). Use it to explore files (ls, head, cat), run Python (`python3 -c ...`), and writ...
0096_784_96784965_qa_2
2
medium
3
bash
[ { "role": "system", "content": "You are an autonomous data-analysis agent operating in a sandboxed Linux container. Your only tool is `bash`. The dataset files are in /home/user/input/. Python 3 + pandas + numpy + scikit-learn + scipy are pre-installed.\n\nWork the problem step-by-step: first inspect the da...
[ { "type": "function", "function": { "name": "bash", "description": "Run a shell command in the sandbox and return its combined stdout+stderr. The shell is non-stateful between calls (each call is a fresh `bash -c`). Use it to explore files (ls, head, cat), run Python (`python3 -c ...`), and writ...
0043_591_43591690_qa_2
2
medium
4
bash
[ { "role": "system", "content": "You are an autonomous data-analysis agent operating in a sandboxed Linux container. Your only tool is `bash`. The dataset files are in /home/user/input/. Python 3 + pandas + numpy + scikit-learn + scipy are pre-installed.\n\nWork the problem step-by-step: first inspect the da...
[ { "type": "function", "function": { "name": "bash", "description": "Run a shell command in the sandbox and return its combined stdout+stderr. The shell is non-stateful between calls (each call is a fresh `bash -c`). Use it to explore files (ls, head, cat), run Python (`python3 -c ...`), and writ...
0001_733_1733851_qa_3
2
medium
12
bash
[ { "role": "system", "content": "You are an autonomous data-analysis agent operating in a sandboxed Linux container. Your only tool is `bash`. The dataset files are in /home/user/input/. Python 3 + pandas + numpy + scikit-learn + scipy are pre-installed.\n\nWork the problem step-by-step: first inspect the da...
[ { "type": "function", "function": { "name": "bash", "description": "Run a shell command in the sandbox and return its combined stdout+stderr. The shell is non-stateful between calls (each call is a fresh `bash -c`). Use it to explore files (ls, head, cat), run Python (`python3 -c ...`), and writ...
0069_399_69399288_qa_4
4
hard
4
bash
[ { "role": "system", "content": "You are an autonomous data-analysis agent operating in a sandboxed Linux container. Your only tool is `bash`. The dataset files are in /home/user/input/. Python 3 + pandas + numpy + scikit-learn + scipy are pre-installed.\n\nWork the problem step-by-step: first inspect the da...
[ { "type": "function", "function": { "name": "bash", "description": "Run a shell command in the sandbox and return its combined stdout+stderr. The shell is non-stateful between calls (each call is a fresh `bash -c`). Use it to explore files (ls, head, cat), run Python (`python3 -c ...`), and writ...
0035_303_35303628_qa_1
3
medium
4
bash
[ { "role": "system", "content": "You are an autonomous data-analysis agent operating in a sandboxed Linux container. Your only tool is `bash`. The dataset files are in /home/user/input/. Python 3 + pandas + numpy + scikit-learn + scipy are pre-installed.\n\nWork the problem step-by-step: first inspect the da...
[ { "type": "function", "function": { "name": "bash", "description": "Run a shell command in the sandbox and return its combined stdout+stderr. The shell is non-stateful between calls (each call is a fresh `bash -c`). Use it to explore files (ls, head, cat), run Python (`python3 -c ...`), and writ...
0028_054_28054736_qa_2
1
easy
3
bash
[ { "role": "system", "content": "You are an autonomous data-analysis agent operating in a sandboxed Linux container. Your only tool is `bash`. The dataset files are in /home/user/input/. Python 3 + pandas + numpy + scikit-learn + scipy are pre-installed.\n\nWork the problem step-by-step: first inspect the da...
[ { "type": "function", "function": { "name": "bash", "description": "Run a shell command in the sandbox and return its combined stdout+stderr. The shell is non-stateful between calls (each call is a fresh `bash -c`). Use it to explore files (ls, head, cat), run Python (`python3 -c ...`), and writ...
0089_604_89604836_qa_4
2
medium
3
bash
[ { "role": "system", "content": "You are an autonomous data-analysis agent operating in a sandboxed Linux container. Your only tool is `bash`. The dataset files are in /home/user/input/. Python 3 + pandas + numpy + scikit-learn + scipy are pre-installed.\n\nWork the problem step-by-step: first inspect the da...
[ { "type": "function", "function": { "name": "bash", "description": "Run a shell command in the sandbox and return its combined stdout+stderr. The shell is non-stateful between calls (each call is a fresh `bash -c`). Use it to explore files (ls, head, cat), run Python (`python3 -c ...`), and writ...
0053_910_53910928_qa_5
4
hard
8
bash
[ { "role": "system", "content": "You are an autonomous data-analysis agent operating in a sandboxed Linux container. Your only tool is `bash`. The dataset files are in /home/user/input/. Python 3 + pandas + numpy + scikit-learn + scipy are pre-installed.\n\nWork the problem step-by-step: first inspect the da...
[ { "type": "function", "function": { "name": "bash", "description": "Run a shell command in the sandbox and return its combined stdout+stderr. The shell is non-stateful between calls (each call is a fresh `bash -c`). Use it to explore files (ls, head, cat), run Python (`python3 -c ...`), and writ...
0041_193_41193082_qa_3
2
medium
4
bash
[ { "role": "system", "content": "You are an autonomous data-analysis agent operating in a sandboxed Linux container. Your only tool is `bash`. The dataset files are in /home/user/input/. Python 3 + pandas + numpy + scikit-learn + scipy are pre-installed.\n\nWork the problem step-by-step: first inspect the da...
[ { "type": "function", "function": { "name": "bash", "description": "Run a shell command in the sandbox and return its combined stdout+stderr. The shell is non-stateful between calls (each call is a fresh `bash -c`). Use it to explore files (ls, head, cat), run Python (`python3 -c ...`), and writ...
0056_687_56687302_qa_2
3
medium
5
bash
[ { "role": "system", "content": "You are an autonomous data-analysis agent operating in a sandboxed Linux container. Your only tool is `bash`. The dataset files are in /home/user/input/. Python 3 + pandas + numpy + scikit-learn + scipy are pre-installed.\n\nWork the problem step-by-step: first inspect the da...
[ { "type": "function", "function": { "name": "bash", "description": "Run a shell command in the sandbox and return its combined stdout+stderr. The shell is non-stateful between calls (each call is a fresh `bash -c`). Use it to explore files (ls, head, cat), run Python (`python3 -c ...`), and writ...
0127_535_127535783_qa_4
1
easy
7
bash
[ { "role": "system", "content": "You are an autonomous data-analysis agent operating in a sandboxed Linux container. Your only tool is `bash`. The dataset files are in /home/user/input/. Python 3 + pandas + numpy + scikit-learn + scipy are pre-installed.\n\nWork the problem step-by-step: first inspect the da...
[ { "type": "function", "function": { "name": "bash", "description": "Run a shell command in the sandbox and return its combined stdout+stderr. The shell is non-stateful between calls (each call is a fresh `bash -c`). Use it to explore files (ls, head, cat), run Python (`python3 -c ...`), and writ...
0115_972_115972863_qa_1
2
medium
3
bash
[ { "role": "system", "content": "You are an autonomous data-analysis agent operating in a sandboxed Linux container. Your only tool is `bash`. The dataset files are in /home/user/input/. Python 3 + pandas + numpy + scikit-learn + scipy are pre-installed.\n\nWork the problem step-by-step: first inspect the da...
[ { "type": "function", "function": { "name": "bash", "description": "Run a shell command in the sandbox and return its combined stdout+stderr. The shell is non-stateful between calls (each call is a fresh `bash -c`). Use it to explore files (ls, head, cat), run Python (`python3 -c ...`), and writ...
0017_339_17339042_qa_3
3
medium
5
bash
[ { "role": "system", "content": "You are an autonomous data-analysis agent operating in a sandboxed Linux container. Your only tool is `bash`. The dataset files are in /home/user/input/. Python 3 + pandas + numpy + scikit-learn + scipy are pre-installed.\n\nWork the problem step-by-step: first inspect the da...
[ { "type": "function", "function": { "name": "bash", "description": "Run a shell command in the sandbox and return its combined stdout+stderr. The shell is non-stateful between calls (each call is a fresh `bash -c`). Use it to explore files (ls, head, cat), run Python (`python3 -c ...`), and writ...
0102_923_102923439_qa_3
1
easy
3
bash
[ { "role": "system", "content": "You are an autonomous data-analysis agent operating in a sandboxed Linux container. Your only tool is `bash`. The dataset files are in /home/user/input/. Python 3 + pandas + numpy + scikit-learn + scipy are pre-installed.\n\nWork the problem step-by-step: first inspect the da...
[ { "type": "function", "function": { "name": "bash", "description": "Run a shell command in the sandbox and return its combined stdout+stderr. The shell is non-stateful between calls (each call is a fresh `bash -c`). Use it to explore files (ls, head, cat), run Python (`python3 -c ...`), and writ...
0112_804_112804674_qa_4
3
medium
5
bash
[ { "role": "system", "content": "You are an autonomous data-analysis agent operating in a sandboxed Linux container. Your only tool is `bash`. The dataset files are in /home/user/input/. Python 3 + pandas + numpy + scikit-learn + scipy are pre-installed.\n\nWork the problem step-by-step: first inspect the da...
[ { "type": "function", "function": { "name": "bash", "description": "Run a shell command in the sandbox and return its combined stdout+stderr. The shell is non-stateful between calls (each call is a fresh `bash -c`). Use it to explore files (ls, head, cat), run Python (`python3 -c ...`), and writ...
0057_778_57778333_qa_1
2
medium
3
bash
[ { "role": "system", "content": "You are an autonomous data-analysis agent operating in a sandboxed Linux container. Your only tool is `bash`. The dataset files are in /home/user/input/. Python 3 + pandas + numpy + scikit-learn + scipy are pre-installed.\n\nWork the problem step-by-step: first inspect the da...
[ { "type": "function", "function": { "name": "bash", "description": "Run a shell command in the sandbox and return its combined stdout+stderr. The shell is non-stateful between calls (each call is a fresh `bash -c`). Use it to explore files (ls, head, cat), run Python (`python3 -c ...`), and writ...
0083_238_83238182_qa_2
2
medium
4
bash
[ { "role": "system", "content": "You are an autonomous data-analysis agent operating in a sandboxed Linux container. Your only tool is `bash`. The dataset files are in /home/user/input/. Python 3 + pandas + numpy + scikit-learn + scipy are pre-installed.\n\nWork the problem step-by-step: first inspect the da...
[ { "type": "function", "function": { "name": "bash", "description": "Run a shell command in the sandbox and return its combined stdout+stderr. The shell is non-stateful between calls (each call is a fresh `bash -c`). Use it to explore files (ls, head, cat), run Python (`python3 -c ...`), and writ...
0024_251_24251009_qa_3
1
easy
3
bash
[ { "role": "system", "content": "You are an autonomous data-analysis agent operating in a sandboxed Linux container. Your only tool is `bash`. The dataset files are in /home/user/input/. Python 3 + pandas + numpy + scikit-learn + scipy are pre-installed.\n\nWork the problem step-by-step: first inspect the da...
[ { "type": "function", "function": { "name": "bash", "description": "Run a shell command in the sandbox and return its combined stdout+stderr. The shell is non-stateful between calls (each call is a fresh `bash -c`). Use it to explore files (ls, head, cat), run Python (`python3 -c ...`), and writ...
End of preview. Expand in Data Studio

🛠️ Data Agent — SFT

4,677 worked examples of an agent doing data science the right way. Each row is a complete, verified-correct trajectory: read the question, poke at the data with a shell tool, reason, compute, and write the answer. Every one of these solved its task and passed a deterministic grader — so you're fine-tuning on demonstrations that are known to be correct, not just plausible.

Drop-in ready for TRL: conversational messages + tools.

Where it comes from

These are real agent rollouts on the Data Agent tasks, which were themselves built from the jupyter-agent dataset (data-science notebooks over Kaggle datasets). We kept only trajectories that reached the correct answer under deterministic grading (reward = 1.0) — one clean demonstration per task.

What's inside

  • 4,677 correct trajectories — one per task
  • Difficulty — easy 1,402 · medium 2,640 · hard 635
  • One tool throughout: bash (shell command execution)

What's in a row

  • messages — the full conversation in OpenAI/TRL chat format: systemuser (the task) → assistant (reasoning + tool_calls) → tool (command output) → … → final assistant answer. Tool-call arguments are JSON objects; tool messages carry the tool name.
  • tools — the bash tool's JSON schema (rendered by apply_chat_template(..., tools=...))
  • task_id, difficulty (1–5), difficulty_tier, n_turns, source_agent

Fine-tune with TRL

from datasets import load_dataset
from trl import SFTTrainer, SFTConfig

ds = load_dataset("HuggingEnvs/data-agent-sft", split="train")

trainer = SFTTrainer(
    model="Qwen/Qwen2.5-3B-Instruct",     # any tool-capable chat template
    train_dataset=ds,                      # messages + tools are picked up automatically
    args=SFTConfig(assistant_only_loss=True, max_length=8192),
)
trainer.train()

The messages + tools columns render through your model's chat template, and assistant_only_loss=True trains on the assistant's tokens only — no dataset wrangling needed.

Downloads last month
23

Collection including HuggingEnvs/data-agent-sft