Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Claude Code for Data Analysts: SQL, Python & Reports
New

Claude Code for Data Analysts: SQL, Python & Reports

Use Claude Code to explore data, write and verify SQL, clean data in Python and ship scheduled reports you can trust
Created byNEXUS ACADEMY
Last updated 11/2026
English

What you'll learn

  • Set up Claude Code with a reproducible analyst bench: Python venv, DuckDB, pandas, Polars, Quarto and git
  • Give Claude project context with an instructions file, a data dictionary and written business rules
  • Lock down an analysis project with permission rules, plan mode and read-only raw data
  • Profile unfamiliar tables and discover a database schema, then check every number Claude reports
  • Turn business questions into SQL with joins, window functions and CTEs, and repair broken queries
  • Catch wrong answers with five checks: row count, key uniqueness, total reconciliation, range and spot check
  • Build a repeatable data cleaning pipeline in pandas and Polars, guarded by pytest data tests
  • Produce clear charts and a weekly report in HTML, PDF and Excel from a single command
  • Automate recurring work with skills, hooks, a reviewer subagent and a read-only MCP database connection
  • Run Claude Code headless on a schedule with logging, failure handling and changes reviewed on git branches

Course content

16 sections • 140 lectures • 9h 38m total length
  • Course Documents and How to Use Them7:21
  • Section 1 Intro: From Raw Tables to a Weekly Report You Can Trust2:50
  • What Claude Code Is for an Analyst: A Terminal Assistant That Reads, Runs and Edits5:42
  • How It Works: Prompts, Tools, Permissions and Your Files5:45
  • Accounts and Access in Plain Terms: Subscription, Console and Cloud Providers (No Prices)3:54
  • [LAB] Installing Claude Code: Native Installer, claude --version and claude doctor5:56
  • [LAB] The Analyst's Bench: Python venv, DuckDB, pandas, Polars and Quarto Versions5:52
  • [LAB] Terminal Survival Kit for Analysts: cd, ls, less, head and Where Files Live5:00
  • [LAB] Your First Session: The Trust Dialog, a Question About a CSV and the Answer Checked by Hand6:21
  • Section 1 Wrap: A Working Bench and the First Checked Answer2:57

Requirements

  • Working knowledge of SQL and spreadsheets; a little prior exposure to Python is enough
  • A computer that can run Claude Code and Docker, plus a Claude account or API access that includes Claude Code

Description

“This course contains the use of artificial intelligence.”

Claude Code can read your tables, draft SQL, write Python and build reports from a terminal. For an analyst, the hard part is not getting an answer; it is knowing the answer is right. This course teaches you to use Claude Code in daily analysis work with one habit at the centre: Claude drafts, you verify

Every lab runs on a real bench: DuckDB, Postgres with a read-only role, pandas, Polars, pytest, Quarto and git. You work in one project, a cda-analytics repository, built from a synthetic company dataset (Larkspur Supply Co) with deliberate data defects, plus the public Chinook sample database. Every number on screen is the real output of the command shown. When Claude writes a wrong join or misses a filter, the recording keeps the mistake and a check catches it

What you will build and practise:

  • A project instructions file, data dictionary and business rules that give Claude the context a new colleague would need

  • Permission rules and plan mode so raw data and secrets stay out of reach

  • Schema discovery, data profiling and an ER diagram for a database you have never seen

  • SQL from business questions: joins, window functions, CTEs, query explanations and fixes

  • Five verification checks (row count, key uniqueness, total reconciliation, range, spot check) turned into pytest tests

  • A repeatable cleaning pipeline in pandas and Polars, with before and after row counts

  • Charts that answer one question each, and a weekly report in HTML, PDF and Excel from one command

  • Skills, hooks and a reviewer subagent for recurring work, plus a read-only database connection over MCP

  • Headless runs, a scheduled weekly report with logs and failure handling, and changes proposed on a git branch

Privacy and usage are covered from the official documentation: what is sent, how to keep personal data out of a session and how to manage context. The course does not quote prices

The capstone starts from a clean clone and takes a new week of raw data all the way to a reviewed, tested, scheduled weekly business report. You keep the repository and 12 downloadable templates and checklists

This course is for analysts who already know SQL and spreadsheets and have touched Python. It is not a software engineering course

Who this course is for:

  • Data and business analysts who want to use Claude Code safely in daily SQL, Python and reporting work
  • Analytics team leads who need repeatable, verifiable reports and shared team conventions
  • Spreadsheet-heavy analysts ready to move recurring reports into a tested, scheduled pipeline