Lesson 18 of 39 · Track 2: Use AI well

AI for data analysis without code: how it works and how to check it

Beginner15 min6 steps1 videoFree · no login
The short answer

Upload a CSV or Excel file to ChatGPT, Claude, Gemini in Sheets or Copilot in Excel, and the AI writes and runs code (usually Python) to answer your question. So the arithmetic is usually done by code, but the AI still makes analyst mistakes: in the DSBench research test, the best agent solved only 34.12% of data analysis tasks. Use it for speed, and run five quick checks before any number goes into a report.

  1. 1

    What actually happens when you upload a spreadsheet

    Modern chatbots do not “look at” your numbers and guess. OpenAI’s help page lists the steps: ChatGPT will “Write Python code to process the data and produce the required analytical output”, using pandas for the maths and Matplotlib for charts. Claude does the same in a sandbox: it can “write and run code (for example Python or Javascript)”.

    This matters because the numbers come from code, not from the model guessing digits. The mistakes come earlier: the code answers a slightly different question, drops rows, or treats a blank as zero. So your job moves from doing the sums to checking the method.

    1. Your file
    2. AI writes Python
    3. Code runs in a sandbox
    4. Answer + chart
    5. You check
    Key idea

    If the AI ran code, the maths is probably right. Check whether it did the right maths on the right rows.

  2. 2

    Which tool to use (as of Nov 2026)

    All four big assistants can analyse a spreadsheet, but they differ in where the data lives and what they accept. Here is what each maker’s own help page says.

    If your data already lives in Excel or Google Sheets, start with the assistant built into that app; it can also write the formula or pivot table for you, which you can then check cell by cell. If you have a one-off CSV, ChatGPT or Claude is quicker. Dedicated tools (Julius, Copilot in Power BI) exist, but learn the checks on a general assistant first.

    What the help pages say (Nov 2026)
    ChatGPT data analysis Runs: Python (pandas, Matplotlib) Files: .xlsx, .csv, .pdf, JSON Limit: 512 MB a file; CSV about 50 MB Free plan: 3 uploads a day Claude Runs: Python or JavaScript Limit: 30 MB a file Plans: all, Free included Gemini in Google Sheets Does: formulas, charts, insights Python: yes, per Google’s Jan 2025 launch post Needs: eligible Workspace or Google AI plan Copilot in Excel Does: build, summarise, chart Python: separately, type =PY in a cell (runs in MS cloud) Needs: a qualifying M365 plan
  3. 3

    How accurate is it? Better than guessing, worse than you think

    Researchers have measured this. DSBench gave models and agents 466 real data analysis tasks; the best agent solved only 34.12%. DA-Code found that the best LLMs it tested reached only 30.5% accuracy on data science code tasks. InfiAgent-DABench built 257 questions from 52 CSV files to test the same skill.

    These are hard, multi-step tasks, tested on 2024 models; we found no public 2026 score on the same tests. The lesson holds either way: a confident, well-formatted answer is not evidence that it is right. Our rules of thumb from using these tools:

    • Simple totals and counts on a clean file: usually right
    • Multi-step questions, joins, messy files: often wrong
    • Charts look right even when the numbers behind them are not
    Key idea

    In the best test we found, the best agent got about 1 in 3 realistic analysis tasks right.

  4. 4

    A workflow that works: inspect, ask, show the method

    Ethan Mollick, who studies AI at Wharton, gives the most useful advice: “Treat it like an analyst”, and have a conversation instead of writing one giant prompt. Start by asking it to describe the file, then ask one question at a time.

    Always ask it to state its method in plain words. In ChatGPT you can also click the blue [>_] link at the end of a message to see the Python it ran.

    Copy this: first message with a file
    Before any analysis, describe this file: 1. How many rows and columns? 2. What does each column mean? 3. How many blank or odd values per column, and what will you do with them? Wait for my OK before you analyse. Then: [one question, e.g. average order value by city in July]. Show the formula you used in plain words.
  5. 5

    Before you upload: keep data safe

    Treat an upload like an email to a vendor. OpenAI says whether your files help train its models “depends on the service you are using”, and that it does not use content from business offerings such as ChatGPT Enterprise. Check your plan’s data controls before you upload anything real.

    Files can also carry attacks. Anthropic warns that a bad actor can hide instructions in a file so Claude “can be tricked into sending information from its context” to third parties. Only upload files you trust.

    • Remove names, phone numbers, emails and IDs first
    • Use your employer’s approved tool for company data
    • ChatGPT’s analysis sandbox is destroyed within 13 hours of the chat going inactive (OpenAI)
  6. 6

    The 5 checks that catch most AI analysis mistakes

    Run these before a number goes into a deck, a report or an interview answer. Each takes under a minute, and together they catch the four mistakes in the practice below.

    • Rows and blanks: does the row count match your file, and what happened to blanks?
    • Totals reconcile: do the parts add up to the total you can see?
    • Right denominator: averages of averages and “per user” vs “per order”
    • Points vs percent: 20% to 25% is +5 points, a 25% rise
    • Spot-check one claim against the raw rows yourself
    Key idea

    You do not need to code to check AI analysis. You need to know where analysis goes wrong.

From the people who built it

Straight from the source

The original idea, then the same idea taken apart, then how you use it today.

Ethan Mollick
Wharton professor who studies how people work with AI; writes One Useful Thing.
What AI can do with a toolbox... Getting started with Code Interpreter (Jul 7, 2023)
1 · Understand
Once ChatGPT could run code on uploaded files, it could do real analysis. His advice: “Treat it like an analyst”, talk with it, and keep “double-checking the results and process, rather than blindly trusting the AI.”
2 · Break it down
  • A short first request is often enough: his example was “look through it and tell me what you find”.
  • Share a data dictionary if you have one, so it knows what each column means.
  • Refine with follow-ups: more tests, a cleaner chart, a different cut.
  • Check both the numbers and the process, because it still makes mistakes.
3 · Use it
Open every analysis by asking the AI to describe the file, then question it like a junior analyst whose work you sign off.
Liqiang Jing, Dong Yu and colleagues (DSBench)
Researchers behind DSBench, a benchmark of realistic data science tasks for AI agents.
DSBench: How Far Are Data Science Agents from Becoming Data Science Experts? (arXiv, 2024)
1 · Understand
They built 466 data analysis tasks and 74 data modelling tasks from real competitions (Eloquence and Kaggle) and tested leading models and agents. The best agent solved “only 34.12% of data analysis tasks”.
2 · Break it down
  • Tasks come from Eloquence and Kaggle competitions, not toy questions.
  • They are realistic on purpose: long contexts, large data files and several tables.
  • Leading LLMs, vision models and agents “struggle with most tasks”, the authors write.
3 · Use it
Use AI to get a first answer fast, then treat that answer as a draft that still needs your checks.
5 terms

Words to know

Code execution
The AI writes a small program and runs it on your file, instead of predicting numbers as text.
pandas
The Python library most assistants use to load and calculate on tables. ChatGPT names it on its help page.
Weighted average
An average where bigger groups count more. Total revenue ÷ total orders is weighted; averaging city averages is not.
Percentage points
The plain difference between two percentages. 20% to 25% is +5 points, which is a 25% relative rise.
Like-for-like
Comparing only the items that exist in both periods, so a missing row does not look like a fall.
1 video · plays here

Watch

Hand-picked from the people who explain this best. The video loads only when you press play.

Use Gemini in Sheets to generate charts and get advanced data insights instantly from a prompt.
Google Workspace

A short official demo of asking Sheets a question in plain words; watch for where the chart comes from, then run check 5 on it.

Practice · 4 claims · 1 small dataset · no AI

Spot the AI’s mistake

An AI analysed this fictional café data and made four classic errors. Pick the check that catches each one; every number is recomputed in your browser.

MonthCityOrdersRevenue (₹)
JulBengaluru4,50011,25,000
JulMumbai1,2003,84,000
JulPune3001,20,000
AugBengaluru4,60011,73,000
AugMumbai1,3504,38,750
AugPune3201,31,200
SepBengaluru4,55011,64,800
SepMumbai1,4504,78,500
SepPune3601,47,600
OctBengaluru4,40011,35,200
OctMumbai1,6005,36,000
OctPune400blank
Kettle Lane Cafés is made up. 12 rows, 1 blank cell, on purpose.Download the CSV
  1. Claim 1 of 4 · the AI said

    “In July, the average order value across all three cities was ₹323.33.”

    Which check catches the mistake?

  2. Claim 2 of 4 · the AI said

    “Revenue fell 6.7% from September (₹17,90,900) to October (₹16,71,200).”

    Which check catches the mistake?

  3. Claim 3 of 4 · the AI said

    “Mumbai’s share of orders grew by 5.0% between July and October.”

    What should the sentence say?

  4. Claim 4 of 4 · the AI said

    “Bengaluru’s best month for orders was July, with 4,500 orders.”

    Which check catches the mistake?

Hands-on · 10 minutes or less

Try it

Catch an AI mistake with a real chatbot (10 minutes)

  1. 1Download the 12-row Kettle Lane Cafés CSV from the practice above (the data is made up).
  2. 2Upload it to ChatGPT or Claude (or import it into Google Sheets and open Gemini) and paste the “first message” prompt from step 4.
  3. 3Check its description: it should find 12 rows and 1 blank revenue cell. If it does not, tell it.
  4. 4Ask the four questions from the practice: July average order value, September to October revenue change, Mumbai’s share of orders, and Bengaluru’s best month.
  5. 5Compare each answer with the right answers above. Note which of the 5 checks you needed.
Practise explaining your analysis out loud
3 questions · instant feedback

Check yourself

Pick an answer to see if you are right, and why.

Question 1

Question 1 of 3

You upload a CSV to ChatGPT and ask for the average. What does it actually do?

Question 2

Question 2 of 3

An AI says “average order value is ₹323” by averaging three city averages. Cities sold 4,500, 1,200 and 300 orders. What is wrong?

Question 3

Question 3 of 3

A conversion rate goes from 20% to 25%. Which sentence is correct?

Lesson 18 of 39

Done? Keep going

Mark this lesson complete to keep your place. Progress is saved on this device, no login.

Up next · Lesson 19 · 9 minWhat is an API?An API (application programming interface) is a set of requests one program can make to another, plus the rules for asking. When an app uses Claude, ChatGPT or Gemini behind the scenes, it sends a request to the model’s API over the internet and gets a response back. You prove who you are with a secret API key, and you pay for the tokens you send and receive.← Previous: Use AI to prepare for interviews
People also ask

Questions people ask

Can I use AI for data analysis without knowing how to code?

Yes. ChatGPT, Claude, Gemini in Google Sheets and Copilot in Excel take plain-English questions and write the code themselves. You still need to know where analysis goes wrong (blanks, averages of averages, percentage points) so you can check the answer.

Is ChatGPT accurate for data analysis?

It is accurate at the arithmetic because it runs Python, but it can apply the wrong method. On the DSBench research test the best agent solved 34.12% of realistic analysis tasks. Check row counts, totals and one number by hand before you rely on it.

Can ChatGPT analyse Excel data, and which AI is best for it?

Yes: ChatGPT accepts .xls and .xlsx files as well as CSV, PDF and JSON. Which AI is best depends where your data lives. Inside Excel use Copilot (and Python in Excel); inside Google Sheets use Gemini. For a one-off file, ChatGPT accepts CSVs up to about 50 MB and Claude accepts files up to 30 MB on every plan, as of Nov 2026.

11 sources · checked Nov 2026

Sources and further reading

Free · No signup to start

Going for an AI role? Practise the interview.

Talk to an AI interviewer about what you just learned and get feedback on every answer.

Start a free mock interview