1---1---
2name: Analyze datasets and ship reports2name: Analyze datasets and ship reports
3tagline: Turn messy data into clear analysis and visualizations.3tagline: Build analysis and reports from your data, just by asking
4summary: Use ChatGPT Work to clean data, join sources, explore a question, model4summary: Use ChatGPT and the Data plugin to connect to data, ask business
5 the result, and produce a clear report with supporting charts and caveats.5 questions, and produce a report or dashboard with supporting charts and
6 visualizations.
6skills:7skills:
8 - token: Data Warehouse Plugins
9 description: Connect to your enterprise data warehouse like Databricks,
10 Snowflake, Google BigQuery, and more.
11 - token: Data
12 url: https://openai.com/business/plugins/data/
13 description: Gather source context, analyze and validate data, and build
14 reusable reports, dashboards, charts, or notebooks.
7 - token: $spreadsheets15 - token: $spreadsheets
8 description: Inspect CSV, TSV, and Excel files, check formulas and joins, and16 description: Inspect CSV, TSV, and Excel files, check formulas and joins, and
9 create reviewable tables or charts.17 create reviewable tables or charts.
10 - token: google-drive
11 url: https://github.com/openai/plugins/tree/main/plugins/google-drive
12 description: Read the approved Google Sheets and source files you name in Drive.
13 - token: Data Analytics
14 description: Gather source context, analyze and validate data, and build
15 reusable reports, dashboards, charts, or notebooks.
16bestFor:18bestFor:
17 - Data analysis that starts with messy files and ends with a chart, memo,19 - Ground answers in your company’s data across connected warehouses, BI tools,
18 dashboard, or report.20 and business applications.
19 - Questions that require cleaning, reliable joins, interpretable models, or21 - "Dashboards: Build interactive dashboards to monitor performance, explore
20 reproducible analysis.22 trends, and investigate your business."
21 - Teams that need artifacts others can review and reuse.23 - "Reports: Turn findings into business reviews, reports, and presentations
24 with clear takeaways and supporting evidence."
22starterPrompt:25starterPrompt:
23 title: Turn data into a source-backed report26 title: Turn data into a source-backed report
24 body: >-27 body: "@Data Diagnose why weekly active users changed last week. Identify likely
25 Use @Data Analytics to inspect the attached property-sales and28 drivers, compare against prior periods, and recommend the next checks."
26 highway-distance datasets and determine whether homes near the highway have
27 lower property values.
28
29
30 Explain what each source contains, identify the relevant columns and likely
31 join keys, and check for missing values, duplicates, unmatched records, and
32 incomplete data. Clean and join the inputs without overwriting the source
33 files or inventing values.
34
35
36 Explore the question with clear supporting charts, start with an
37 interpretable model when modeling is useful, and explain the result,
38 assumptions, and uncertainty in plain language. Return a concise report,
39 notebook, or spreadsheet with the answer first, name the files you create,
40 and flag any data issue that could change the conclusion.
41 suggestedEffort: medium29 suggestedEffort: medium
42relatedLinks:30relatedLinks:
43 - label: Plugins31 - label: Data plugin
44 url: /codex/plugins32 url: https://chatgpt.com/plugins/Plugin_fc9843a6fb34819195d6c7802398a8a7
45 - label: Agent skills33 - label: Workspace setup
46 url: /codex/build-skills34 url: https://help.openai.com/en/articles/20001518-using-the-data-plugin-in-chatgpt-work-and-codex
47techStack:35 - label: Dashboard guide
48 - need: Analysis stack36 url: /use-cases/analyze-data-export
49 goodDefault: "[pandas](https://pandas.pydata.org/) with
50 [matplotlib](https://matplotlib.org/) or
51 [seaborn](https://seaborn.pydata.org/)"
52 why: Good defaults for import, profiling, joins, cleaning, and the first round
53 of charts.
54 - need: Modeling
55 goodDefault: "[statsmodels](https://www.statsmodels.org/) or
56 [scikit-learn](https://scikit-learn.org/stable/)"
57 why: Start with interpretable baselines before moving to more complex predictive
58 models.
59---37---
60 38
61> For the complete documentation index, see [llms.txt](/llms.txt). Markdown versions of documentation pages are available by appending `.md` to the page URL.39> For the complete documentation index, see [llms.txt](/llms.txt). Markdown versions of documentation pages are available by appending `.md` to the page URL.
62 40
63## Introduction41## Introduction
64 42
65At its core, data analysis is about using data to inform decisions. The goal isn't analysis for its own sake. It's to produce an artifact that helps someone act: a chart for leadership, an experiment readout for a product team, a model evaluation for researchers, or a dashboard that guides daily operations.43Which marketing campaigns brought in customers who stuck around? Where do new users get stuck during onboarding? With the [Data](https://openai.com/business/plugins/data/) plugin in ChatGPT, you can explore questions like these using your company’s data, without waiting for the next report.
66
67A useful framework, popularized by _R for Data Science_, is a loop: import and tidy data, then iterate between transform, visualize, and model to build understanding before you communicate results.
68
69ChatGPT Work fits well into this workflow. It helps you clean data, explore hypotheses, generate analyses, and produce reproducible artifacts. The target isn't a one-off notebook. It's an analysis that other people can review, trust, and rerun.
70
71## Define your use case
72
73Choose one concrete question you want to answer with your data. The more specific the question, the easier it is to identify the right inputs, checks, and result.
74
75### Running example: Property values near the highway
76
77As an example, we'll explore the following question:
78
79> To what extent are houses near the highway lower in property valuation?
80
81Suppose one dataset contains property values or sale prices, and another contains location, parcel, or highway-proximity information. The work isn't only to run a model. It's to make the inputs trustworthy, document the joins, pressure-test the result, and end with an artifact that somebody else can use.
82
83You can attach CSVs or Excel workbooks, name an approved Google Sheet with `@google-drive`, or use the desktop app when your data is stored on your computer.
84
85### Example result
86
87In a fictional sample, ChatGPT matches 11 property sales to the highway-distance file and flags one sale without a matching distance. Homes within one mile of the highway average **$500,000**, compared with **$600,000** for homes two to five miles away.
88
89After excluding the highest-priced distant property, the difference remains **$94,000**. The report and chart explain that the sample is small, the unmatched sale is excluded, and the comparison doesn't establish causation or control for neighborhood, sale timing, traffic, or noise.
90
91 44
45Start with a question in your own words, then follow up on what you find. If fewer customers are finishing onboarding, ask ChatGPT to pinpoint the step with the biggest drop, compare it with last month, and build an interactive dashboard your team can use to track progress. You can do it all in one conversation, without writing a SQL query or learning a new analytics tool.
92 46
47## Get started with Data
93 48
94## Import the data49If Data is available in your workspace, open **Plugins** in ChatGPT, find **Data**, and install it if needed. Start a chat with **@Data** and attach a spreadsheet or choose an available data source. Follow any prompts to connect or sign in.
95 50
96Start by attaching the files and asking ChatGPT to inspect them. This helps answer basic but important questions:51If Data or a source is unavailable, ask your workspace admin to check access. Admins can follow [chapter 2: Connect your team’s data](https://developers.openai.com/training/data-agent/connect-your-data).
97 52
98- What file formats are here?53Check a familiar number against the source using the same dates and filters before relying on the analysis.
99- What does each dataset seem to represent?
100- Which columns might be targets, identifiers, dates, locations, or measures?
101- Where are the clear quality issues?
102 54
103Don't ask for conclusions yet. Ask for inventory and explanation first.55## Define your use case
104
105## Tidy and merge the inputs
106
107Most real work starts here. You have two or more datasets, the primary key isn't clear, and a naive merge could lose data or create duplicates.
108
109Ask ChatGPT to profile the merge before performing it:
110
111- Check uniqueness for candidate keys.
112- Measure null rates and formatting differences.
113- Normalize clear formatting issues such as casing, whitespace, or address formatting.
114- Run trial joins and report match rates.
115- Recommend the safest merge strategy before it writes the final merged file.
116
117If you need to derive the best key, such as a normalized address, a parcel identifier built from a few columns, or a location join, ask ChatGPT to explain the tradeoffs and edge cases before you accept the merge.
118
119## Explore with charts
120
121Use charts to understand the data before choosing a model. In the running example, compare homes near the highway with homes farther away, examine outliers, inspect missing-value patterns, and check whether the apparent effect reflects neighborhood composition, home size, or another factor.
122
123Keep each chart tied to the original question. Save the useful comparisons so another person can inspect the analysis.
124
125## Model the question
126 56
127Not every analysis needs a complex model. Start with an interpretable baseline.57Start with a decision your team needs to make. For example, a sales manager planning the next team meeting wants to know which regions missed their targets.
128 58
129For the highway question, a sensible first pass is a regression or other transparent model that estimates the relationship between highway proximity and property value while controlling for relevant factors such as size, age, and location.59Attach a spreadsheet with each region’s sales and target for last quarter. Then ask the Data plugin in ChatGPT:
130 60
131Ask ChatGPT to be explicit about:
132 61
133- The target variable and feature definitions.
134- Which controls to include and why.
135- Leakage risks and exclusions.
136- How it chose the split, evaluation, or uncertainty estimate.
137- What the result means in plain language.
138 62
139If the first model is weak, that's still useful. It tells you whether the problem is the model, the features, the join quality, or the question itself.63**Prompt:**
140 64
141## Communicate the result65```text
66Which regions missed their sales targets last quarter, and by how much? Show actual sales and targets side by side in a chart.
67```
142 68
143The analysis is only useful when someone else can consume it. Ask ChatGPT to produce the artifact the audience needs:69**Example result:** In this fictional example, the West region had the largest shortfall. Sales reached $900,000 against a $1 million target, a 10% gap. The manager can share the chart and ask a follow-up: “Which products accounted for most of the gap in the West?”
144 70
145- A Markdown memo for technical collaborators.71<figure id="data-agent-chapter-3" class="scroll-mt-20">
146- A spreadsheet or CSV for downstream operations.
147- A formatted document or PDF for decision-makers.
148- A notebook, dashboard, or static report for a reusable analysis.
149 72
150Ask it to include caveats. If the join quality is imperfect, sampling bias is present, or model assumptions are fragile, the deliverable should say so plainly.
151 73
152## Optional: set up a Python environment74[Ask a question and explore the answer](https://cdn.openai.com/devhub/videos-learn/data-agent/v1/ask-a-question.webm)
153 75
154If the project needs reusable scripts or a notebook, ask ChatGPT to use the existing Python environment or set up a small, reproducible one. Keep source files unchanged and save the analysis, charts, and final report separately. You don't need to set up Python before analyzing attached files in ChatGPT Work.
155 76
156## Suggested prompts
157 77
158**Load the datasets and explain them**
159 78
79Chapter 3 of 5 in the [Data Agent training series](https://developers.openai.com/training/data-agent).
160 80
161 81
162**Prompt:**82</figure>
163 83
164```text84## Create and share a report
165Review the data files I've attached and explain what each one contains. Identify likely target columns, dates, parcel or location identifiers, file formats, missing information, and obvious quality issues. Don't draw conclusions yet.
166```
167 85
168**Check the merge before joining**86Ask ChatGPT to turn the analysis into a report your team can review:
169 87
170 88
171 89
172**Prompt:**90**Prompt:**
173 91
174```text92```text
175Check how these datasets should be joined. Profile the candidate keys, show duplicate and unmatched records, normalize obvious formatting issues, and explain the safest join. Don't invent missing values or overwrite the source files.93@Data Create a report summarizing which regions missed their sales targets, the size of each gap, the supporting chart, and the questions we should investigate next. Include links to the sources.
176```94```
177 95
178**Build an interpretable first model**96Review the figures and caveats, then ask ChatGPT to put the report in a Page in Space. Open **Share**, choose who can access it, and check that recipients can also open any linked source files.
179 97
98<figure id="data-agent-chapter-5" class="scroll-mt-20">
180 99
181 100
182**Prompt:**101[Share a report with your team](https://cdn.openai.com/devhub/videos-learn/data-agent/v1/share-a-report.webm)
183 102
184```text
185Model whether highway proximity is associated with lower property values. Start with an interpretable baseline, account for home size, age, and neighborhood where the data supports it, and explain the effect, uncertainty, and limitations in plain language.
186```
187 103
188**Package the results for stakeholders**
189 104
190 105
106Chapter 5 of 5 in the [Data Agent training series](https://developers.openai.com/training/data-agent).
191 107
192**Prompt:**
193 108
194```text109</figure>
195Turn this analysis into a short, stakeholder-ready report. Put the answer first, include the most useful supporting charts, explain the data and join checks, and clearly flag any limitations or uncertainty. Keep the source data unchanged and name the files you create.
196```