# Agent-driven data notebook

> Do reproducible analysis in Python with an agent writing the code.

- Category: Data analysis · Difficulty: Intermediate
- Estimated monthly cost: $20/mo. Claude Pro or ChatGPT Plus at $20/month.
- Model: Claude Sonnet 5.5 or GPT-6.1 Sol
- MCP servers: none
- Last checked: 2026-10-21 · Hands-on tested: no (built from official docs)
- Canonical: https://getagentloadout.com/loadouts/data-analysis-notebook/ · JSON: https://getagentloadout.com/data/loadouts/data-analysis-notebook.json

## Tools
- [Claude Code](https://claude.com/product/claude-code): Anthropic's agentic coding tool for the terminal and IDEs. Included in paid Claude plans. Pricing: Pro $20/mo ($17/mo billed yearly; 5-hour and weekly usage limits); Max 5x $100/mo (5x Pro usage per session); Max 20x $200/mo (20x Pro usage per session). Source: https://claude.com/pricing
- [OpenAI Codex](https://openai.com/codex): OpenAI's coding agent for web, CLI, IDE and cloud tasks, bundled with ChatGPT plans. Pricing: Free $0/mo (Lightweight tasks, GPT-6 Luna); Go $8/mo (Lightweight tasks); Plus $20/mo (GPT-6.1 Sol, GPT-6.1 Terra and GPT-6 Luna); Pro $100/mo (Pro 100 / Pro 200 / Pro 500 ($500 adds Ultrafast); billed monthly only). Source: https://learn.chatgpt.com/docs/pricing

## Starter prompt

```
Load data/raw/<file>. Check for missing values and outliers, then answer <question>. Write the work as a notebook I can re-run, and finish with 3 takeaways.
```

## Config (AGENTS.md)

```markdown
- Use Python with pandas and matplotlib in a virtualenv.
- Put analysis in notebooks/ and reusable code in src/.
- Never modify files in data/raw/.
- Every chart gets a one-line takeaway.
```

## Setup steps
1. Create a repo with data/raw and AGENTS.md.
2. Run the prompt.
3. Commit the notebook so results are reproducible.

## Why this works
You keep the code, so the analysis can be re-run when data changes.

## Watch out
Check outputs against a manual spot-check before sharing.

## Related loadouts
- [AI QA agent: plan, write and self-heal end-to-end tests](https://getagentloadout.com/loadouts/qa-test-agents/)
- [Analyze a spreadsheet in plain English](https://getagentloadout.com/loadouts/data-analysis-no-code/)
- [The $20/month coding agent: pick one subscription](https://getagentloadout.com/loadouts/twenty-dollar-coding-agent/)

Some links may be affiliate links; it never affects rankings. Rankings are never for sale.
