ipIterPrompt
IntegrationData & DatabasesVerified Last verified 2026-07-24

Advanced Data Analysis (Code Interpreter)

by OpenAI

Advanced Data Analysis, previously called Code Interpreter, lets ChatGPT write and execute Python in a secure sandbox to clean, analyze, and visualize data you upload. You describe what you want in plain language; ChatGPT generates the code, runs it, and returns tables, charts, and files — no local Python setup required. It can also be enabled as a tool inside a custom GPT.

Works with

Custom GPTs, Actions, MCP connectors, and Apps.

When to use it

  • You have a CSV/Excel file and want analysis or charts without writing code
  • You need a quick, reproducible transformation you can download
  • You want to explore an unfamiliar dataset conversationally

When not to

  • Highly sensitive data you can't upload to a cloud service
  • Production data pipelines — this is for exploration, not scheduled jobs

What it does

  • Run generated Python in a secure sandbox on your uploaded files
  • Clean, transform, and analyze spreadsheets and datasets from natural language
  • Produce static and interactive tables and charts, plus downloadable output files
  • Be enabled as a capability inside a custom GPT (files attached as Knowledge)

How to install

Setup steps with copy-paste config. Sources are cited under each method.

Use it in a chat

ChatGPT

Requires: An eligible ChatGPT plan · A file to analyze (e.g. CSV or Excel)

  1. Upload your file

    Attach a CSV, Excel, JSON, or similar file to the message.

  2. Describe the analysis

    Ask in plain language — ChatGPT writes Python, runs it in the sandbox, and returns tables, charts, or a cleaned file.

  3. Optionally enable it in a GPT

    In the GPT editor, turn on Code Interpreter & Data Analysis and attach reference files as Knowledge (up to the documented file limits).

How to prompt it

Copy-paste prompts written to exercise this plugin, with what to expect.

Chart sales from a CSV

You have a sales export and want a quick breakdown.

Here's my sales.csv. Show total revenue by month as a bar chart, flag the three best and worst months, and give me the cleaned data as a downloadable file.

What to expect: ChatGPT runs Python on the file, returns a labeled bar chart and the flagged months, and offers a cleaned CSV to download.

  • Ask it to 'show the code' if you want to reproduce the analysis elsewhere.
  • Name columns explicitly when your headers are ambiguous.

Tips for getting the most out of it

  • The sandbox resets between sessions — download anything you want to keep.
  • For repeatable analysis, wrap the workflow in a custom GPT with Code Interpreter enabled.
  • Ask for the underlying Python when you need to run the same transformation on your own machine.

Prompts to pair with it

Real prompts from the IterPrompt library you can copy or run.

Text Analyzer Tool

Turn any AI chat into a text analyzer tool with this community persona prompt.

2,566 copiesOpen ↗

Network Packet Analyzer CLI

Turn any AI chat into a network packet analyzer cli with this community persona prompt.

1,380 copiesOpen ↗

Analyze PDF and Create MATLAB Code

Turn any AI chat into an analyze pdf and create matlab code with this community persona prompt.

4,053 copiesOpen ↗

Viral Video Analyzer for TikTok and Xiaohongshu

Turn any AI chat into a viral video analyzer for tiktok and xiaohongshu with this community persona prompt.

5,223 copiesOpen ↗

Analyze Previous Year Question Papers

Turn any AI chat into an analyze previous year question papers with this community persona prompt.

4,580 copiesOpen ↗

Analyze code scanning security issues and dependency updates if vulnerable

Turn any AI chat into an analyze code scanning security issues and dependency updates if vulnerable with this community persona prompt.

5,063 copiesOpen ↗
See more prompts in the library

Frequently asked questions

Is Code Interpreter the same as Advanced Data Analysis?+

Yes — it was renamed. Both refer to ChatGPT's ability to write and run Python in a sandbox to analyze files and generate visualizations.

Where does my file go?+

It's processed in a secure, temporary cloud sandbox. Don't upload data you're not permitted to send to a third-party service; confirm current data-handling terms with OpenAI.

Pairs well with

Related guides

Alternatives to Advanced Data Analysis (Code Interpreter)

Sources & verification

The facts on this page and where they come from. Anything unverified is labeled — we'd rather say "unknown" than guess.

Install steps, pricing, and availability change often. Always confirm on the official page before relying on setup details.