The right prompt turns a messy CSV, a tangled SQL query or a wall of metrics into clean, explainable output in seconds. Here are seven copy-paste prompts that data analysts use every day in ChatGPT, Claude or Gemini.
1. Pandas Data Cleaning Script
Use-case: turn a messy CSV into analysis-ready data without writing boilerplate.
Act as a senior data analyst. I will paste a messy CSV. Write a pandas script that:
1. Standardises headers to snake_case
2. Fills missing numerics with the column median, text with "unknown"
3. Parses dates to ISO format and drops duplicates
4. Prints a summary of rows affected per step
2. SQL Query Builder and Explainer
Use-case: generate an optimised SQL query from a plain-English question — with explanations.
Act as a senior SQL analyst. Answer this question: [YOUR QUESTION, e.g. "Which products drove the most revenue growth last quarter?"]
Schema:
Table: [TABLE_1] Columns: [column (type), ...]
Table: [TABLE_2] Columns: [column (type), ...]
- Write standard SQL for PostgreSQL with an inline comment on each clause
- Explain in plain English what the query returns
- Flag assumptions about NULLs or date handling
- Suggest one optimisation for tables over 1 million rows
3. Exploratory Data Analysis Summary
Use-case: understand a brand-new dataset in minutes instead of hours.
Act as an exploratory data analyst. I will paste a dataset summary. Produce an EDA report with:
1. Row/column counts, data types, missing-value percentages
2. Descriptive stats for numerics (mean, median, std, min, max)
3. Top 5 values per categorical column
4. Three observations on patterns, skew or outliers
5. Three follow-up questions a stakeholder would ask
4. Chart Recommendation Engine
Use-case: stop defaulting to bar charts — pick the right visualisation for the story.
Act as a data visualisation specialist. I have [DATA DESCRIPTION, e.g. "monthly revenue by product category and region for 2024-2026"].
1. Recommend the 3 best chart types and when to use each
2. For the top pick: describe the axes and suggest a clear chart title
3. Warn me about 2 misinterpretation risks (truncated axes, area distortion)
4. Suggest a colour-blind-friendly palette for positive vs negative values
5. Excel Formula Generator
Use-case: get error-free nested formulas and regex extractors on demand.
Act as an Excel expert. Write a formula that [TASK, e.g. "extracts the domain from a list of email addresses in column A" or "looks up a value with XLOOKUP across two sheets"].
Sample layout: [DESCRIBE SHEETS].
- Return the exact formula ready to paste
- Explain each function in one sentence
- Add a Google Sheets version if the syntax differs
6. Anomaly and Trend Interpreter
Use-case: explain a spike or dip in plain language for stakeholders.
Act as a business analyst. The metric [METRIC] changed from [VALUE A] to [VALUE B] between [DATE 1] and [DATE 2]. Context: [ONE SENTENCE].
1. List 4 possible causes ranked by likelihood, each with a one-line test to check it
2. Explain the change twice: once technical for analysts, once plain-English for executives
3. Call it: seasonality, one-off anomaly, or structural shift — and say what data would confirm it
7. Executive Summary Writer
Use-case: convert a page of metrics into a memo your boss actually reads.
Act as a data storyteller. Here are my analysis results: [PASTE BULLET POINTS OR A TABLE].
Turn them into an executive summary with:
- A 2-sentence headline finding
- 3 key insights, each tied to a business decision
- One recommended next action per insight
- A limitations note: what the data does NOT prove
Tone: confident, plain-English, no jargon. Under 250 words.
Related guides on NextGenAIVibe
- 7 AI Prompts for Executive Assistants: Daily EA Pack 2026
- 10 Best AI Productivity Apps 2026: Ranked & Tested
- 10 Best AI Meeting Assistants 2026: Ranked & Compared
Tags: #AIPrompts #DataAnalysts #ChatGPT #PromptGuide #Productivity #DataAnalysis #SQL #Python
Comments (0)