AI Prompts for ChatGPT for Data Analysis

20 tested prompts across 4 stages. Works with ChatGPT, Claude, and Gemini.

AI Prompts for ChatGPT for Data Analysis
Scroll to explore

Extract meaningful insights from data faster by using ChatGPT to analyze, interpret, and communicate findings. Built across 4 distinct stages covering Prepare and understand your data, Analyze and explore, Visualize findings and more, this guide gives you one tested prompt per step so you never have to write from scratch or guess what the AI needs. The prompts work in ChatGPT, Claude, and Gemini and are designed to get usable output on the first try.

Stage 1

Prepare and understand your data

Start here to understand your dataset and prepare it for reliable analysis.

Understand a dataset

I have a dataset with these columns: [LIST COLUMNS AND SAMPLE VALUES]. Help me understand: what each column likely represents, what questions this data can answer, and what to explore first.

Prepare and understand your data

Plan the analysis

I need to analyze [DESCRIBE THE DATA] to answer this question: [YOUR QUESTION]. What analysis steps should I take, in what order? What will each step tell me?

Prepare and understand your data

Identify data quality issues

Here is a sample of my data: [PASTE SAMPLE ROWS]. What data quality issues should I check for? Include: missing values, outliers, duplicates, inconsistent formats, and impossible values.

Prepare and understand your data

Choose the right analysis

I want to understand [DESCRIBE WHAT YOU WANT TO LEARN] from this data: [DESCRIBE THE DATA]. What type of analysis is most appropriate: descriptive, diagnostic, predictive, or prescriptive? What specific methods?

Prepare and understand your data

Write data cleaning code

Write [PYTHON PANDAS / R / SQL] code to clean this dataset: [DESCRIBE OR PASTE THE DATA]. Handle: missing values, duplicate rows, inconsistent casing, and data type corrections.

Prepare and understand your data

Stage 2

Analyze and explore

These prompts help you explore your data and surface patterns worth investigating.

Write exploratory analysis code

Write Python/pandas code to do exploratory data analysis on this dataset: [DESCRIBE THE DATA]. Include: summary statistics, distribution plots, correlation matrix, and the top 5 questions to investigate further.

Analyze and explore

Find patterns in data

I have this data: [PASTE SAMPLE OR DESCRIBE]. What patterns, trends, or anomalies should I look for? How do I identify which patterns are meaningful versus random?

Analyze and explore

Analyze a metric

Walk me through analyzing [METRIC NAME]: [DESCRIBE THE METRIC AND CONTEXT]. What affects it, how should it trend, and what would count as a significant change?

Analyze and explore

Interpret statistical results

I got these statistical results: [PASTE RESULTS]. Explain what they mean in plain language: what is significant, what is the practical effect size, and what conclusions can I draw?

Analyze and explore

Compare groups

I want to compare [GROUP A] and [GROUP B] on [METRIC]. What is the right statistical test? Write the code and explain how to interpret the result.

Analyze and explore

Stage 3

Visualize findings

Use these prompts to choose and design visualisations that communicate your data clearly.

Choose the right chart

I want to visualize [DESCRIBE WHAT YOU WANT TO SHOW]. What chart type should I use: bar, line, scatter, histogram, heatmap, box plot, or other? Explain why.

Visualize findings

Write visualization code

Write Python code using [MATPLOTLIB / SEABORN / PLOTLY] to create a [CHART TYPE] showing [DESCRIBE WHAT TO SHOW] from this data: [DESCRIBE THE DATA]. Make it publication-quality.

Visualize findings

Design a dashboard layout

I want to build a dashboard showing [DESCRIBE METRICS]. What visualizations should I include, what layout works best, and what filters should users have?

Visualize findings

Make charts more readable

Review this chart and suggest how to make it clearer: [DESCRIBE THE CHART]. Focus on: axis labels, title, legend, color choice, and removing visual clutter.

Visualize findings

Tell a data story

I have these findings: [LIST YOUR KEY FINDINGS]. How do I sequence them into a narrative that leads logically from data to insight to recommendation? Outline the story arc.

Visualize findings

Stage 4

Communicate insights

Use these prompts to turn your analysis into clear, actionable communication.

Write an analysis summary

Write an executive summary of this data analysis: [PASTE OR DESCRIBE FINDINGS]. Keep it to 3-5 bullet points, lead with the most important finding, and end with a clear recommendation.

Communicate insights

Translate data for non-technical audiences

Translate these data findings for a non-technical audience: [PASTE FINDINGS]. Remove jargon, use plain language, and focus on what the findings mean for the business decision at hand.

Communicate insights

Write a data report

Write a data report on [TOPIC] covering: background/objective, methodology, key findings with supporting data, limitations, and recommendations. Audience: [DESCRIBE AUDIENCE].

Communicate insights

Anticipate questions

I'm presenting this analysis to [AUDIENCE]: [DESCRIBE YOUR FINDINGS]. What questions will they ask? Prepare answers to the most likely 5-7 questions, including skeptical challenges.

Communicate insights

Write data-driven recommendations

Based on these findings: [LIST FINDINGS], write 3 specific, actionable recommendations. Each recommendation should clearly link to the data that supports it.

Communicate insights

Frequently asked questions

Can ChatGPT analyze my actual data?+

ChatGPT can analyze data you paste directly into the chat (small datasets, sample rows, summary statistics). For large datasets, it is more useful for writing analysis code in Python, R, or SQL that you then run on your own data.

What data analysis tasks is ChatGPT best at?+

Writing data cleaning and analysis code, explaining statistical methods, interpreting results in plain language, suggesting analysis approaches, and helping communicate findings to non-technical audiences.

Can ChatGPT write Python pandas code for data analysis?+

Yes. Describe your dataset and what you want to analyze, and ChatGPT will write working pandas code. It can handle data cleaning, aggregation, merging, filtering, and visualization code.

How do I share sensitive data with ChatGPT safely?+

Anonymize data before sharing: replace names, IDs, and personal fields with synthetic values. Share the structure and patterns without the actual sensitive values. For fully sensitive data, use a locally-run AI tool instead.

What is the difference between ChatGPT and specialized data tools like Python or Tableau?+

ChatGPT is for ideating, writing code, and interpreting results in natural language. Python and SQL are for executing the actual analysis on your data. Tableau and similar tools are for building interactive visualizations. They work best together.