Coding agents for data analysis
Simon Willison's freely available NICAR 2026 handout lets anyone use coding agents like Claude Code and OpenAI Codex to analyze, clean, visualize and scrape data today, without new skills.
Simon Willison published the handout for his three-hour 'Coding agents for data analysis' workshop at the NICAR 2026 data journalism conference. It teaches journalists to use tools like Claude Code and OpenAI Codex - AI assistants that write and run code - to explore databases, clean data, build visualizations and scrape websites. The exercises use Python and SQLite, and the handout is free online for anyone with data to explore.
Willison ran the NICAR 2026 workshop on GitHub Codespaces with a budget-capped OpenAI Codex API key, and attendees burned $23 of Codex tokens total. The free handout covers querying, cleaning, visualizing and scraping with Claude Code and Codex. It is a practical, low-cost template for teams adopting AI coding agents for data work.
The handout walks through Claude Code and Codex setup on GitHub Codespaces, querying SQLite databases, cleaning data (decoding neighborhood codes), generating visualizations and web scraping, using Python, SQLite and Datasette. A highlight: serving Datasette static content from a viz/ folder while Claude Code vibe-codes interactive visualizations into it, including a Leaflet and Leaflet.heat heat map of roughly 200,000 trees.