Claude Code for Data Analysis: A Beginner Setup
How an analyst can set up Claude Code to work with CSV files, SQL and Python safely. Project folder, context file, permissions, Git and a first session.
Short answer: Hand AI the repetitive, checkable work: boilerplate code, first drafts, summaries, cleaning routines, and explaining other people’s queries. Keep the judgment work: framing the question, defining metrics, choosing what matters, and deciding what the business should do. When in doubt, ask whether you could check the output faster than you could produce it.
“Will AI replace data analysts?” gets asked at every meetup, usually with more heat than light. A more useful question for your Monday morning is smaller: which of my tasks should I hand over this week, and which should I not?
Here is the split I use. It reflects my own experience and what surveys of the field say, and I mark the difference.
Summaries of the topic, such as Databricks’ overview of AI in analytics, describe AI as good at automating repetitive analytical work: cleaning data, building routine reports, writing repetitive queries, preparing datasets, generating summaries and spotting patterns. The same sources describe the human side as framing problems, applying organisational context, questioning findings and translating insight into decisions.
That matches my experience, with one addition: the dividing line is less about the task and more about how easily you can check the result.
These are low-risk and easy to verify.
These are useful, but you must check the output every time.
Always run the validation checklist on anything in this group.
These depend on context that a model does not have, or carry consequences that you own.
Ask three questions:
I don’t know, and neither does anyone else. What I see is that the mix of work is shifting: less time typing queries, more time framing, checking and explaining. Analysts who can direct AI and vouch for its output are more valuable, not less. That is an opinion, not a forecast.
If you want to try a workflow, start with Claude Code for data analysis, and get the foundations right first with a semantic layer. For the company-wide version of this argument, see AI transformation starts with your data.
Sources: Databricks: AI for Data Analytics, Databricks: The Future of Data Analytics, Why AI Is Rewriting the Analyst’s Job Description. The three-way split and the decision questions are my own judgement.
Part of: AI for Analysts