253 AI Prompts for Data Analysis

The best Data Analysis prompts across 7 subcategories. Tested on ChatGPT, Claude, Gemini and every major model.

Browse the prompts

## Role
You are a data export specialist who ensures cleaned datasets are exported to CSV with zero integrity loss and maximum compatibility across analytical platforms.

## Context
The user has completed data cleaning and needs export code that prevents encoding errors, delimiter conflicts, and index mishandlingβ€”common failure points that corrupt files and break downstream tools.

## Task
Generate production-ready pandas export code that:

1. Requests the dataset variable name if not provided in the input
2. Exports to CSV with safe defaults:
   - UTF-8 encoding for universal character support
   - `index=False` to exclude row indices unless data requires them
   - Comma delimiter (warn if data may contain commas)
   - Timestamped filename to prevent overwrites
   - Cross-platform compatible file paths
3. Includes error handling with try-except blocks that report failures clearly
4. Ver

Export Cleaned Data to CSV Prompt

Generates production-ready Python code to export cleaned pandas DataFrames to CSV with UTF-8 encoding, error handling, and integrity verification. Runs on ChatGPT, Claude, Gemini, and Grok.

31
## Role
You are an expert data analyst specializing in affiliate marketing performance analysis.

## Task
Analyze affiliate marketing data to identify and rank top-performing affiliates based on key performance metrics. Present your findings in a structured table format that is clear, accurate, and actionable for stakeholders.

## Process
1. Gather and review the provided affiliate marketing data
2. Clean and preprocess the data to ensure accuracy
3. Calculate the specified performance metrics for each affiliate
4. Rank affiliates from highest to lowest performance
5. Present the analysis in the requested table structure

## Input
Metrics to evaluate: {{performance-metrics}}
Table structure: {{table-format}}

## Output
Deliver a well-formatted table with the specified columns, ranked by performance. Include brief observations about the top performers and any notable patterns in the data.

Affiliate Performance Analysis and Ranking Prompt

Analyzes affiliate marketing data to identify and rank top-performing affiliates based on custom performance metrics, delivered in a structured table format. Runs on ChatGPT, Claude, and Gemini.

31

Customer Acquisition Cost (CAC) Calculator Prompt

Generates a structured CAC analysis with channel-level breakdown and overall cost-per-customer calculation. Runs on ChatGPT, Claude, and Gemini to produce markdown tables from marketing spend and customer data.

30

Data Validation Refinement Plan for Research

Generates a systematic refinement plan to improve accuracy and consistency in research data validation workflows. Outputs a markdown table covering the full validation lifecycle, designed for ChatGPT, Claude, and Gemini.

30

CRM Dashboard Customization Prompt for Data Insights

Generates a complete dashboard customization plan that configures CRM widgets, visualizations, layout, and interactivity to surface actionable business intelligence. Runs on ChatGPT, Claude, and Gemini.

30
## Role
You are an expert people analytics strategist and organizational psychologist specializing in workforce data analysis.

## Task
Identify five evidence-based drivers of employee engagement supported by concrete people analytics trends and data-driven insights.

## Context
Traditional engagement surveys are failing, remote work has shifted relationship dynamics, and organizations need evidence-based solutions that move metricsβ€”not feel-good initiatives. Draw from the latest people analytics research, behavioral science findings, and patterns emerging from large-scale employee data analysis across diverse industries.

Focus on drivers that show consistent correlation across different demographic segments and organizational contexts.

Organization profile:
{{organization-context}}

## Output
For each of the five drivers, provide:

- A clear name and description of the driver
- Suppor

Employee Engagement Drivers Analysis Prompt

Generates five evidence-based employee engagement drivers, each supported by people analytics data, behavioral psychology rationale, validation metrics, and implementation steps. Runs on ChatGPT, Claude, Gemini, and Grok.

30
## Role
You are an expert sales performance analyst building a KPI tracking system for a sales team.

## Task
Create a comprehensive KPI tracking table that monitors sales performance metrics. For each KPI:
- Provide a clear, actionable description
- Set realistic targets aligned with sales strategy
- Include space for actual performance data
- Ensure metrics deliver actionable insights for improvement

## Context
{{sales-team-context}}

## Output
Deliver a markdown table with exactly these columns: **KPI Name** | **Description** | **Target** | **Actual Performance**

Populate the table with the KPIs most relevant to the team context provided. If specific KPIs were mentioned, include those; otherwise select the most impactful metrics for the team structure and goals described.

Sales KPI Tracking Table Generator

Builds a structured markdown table that tracks key sales performance indicators, including descriptions, targets, and performance columns. Runs on ChatGPT, Claude, and Gemini.

30

Product Comparison Chart Generator

Generates structured markdown comparison tables that present features, benefits, and pricing across competing products. Runs on ChatGPT, Claude, Gemini, and Grok.

30

Real-Time Educational Analytics Framework Builder

Builds a structured real-time analytics framework for educational institutions, mapping data sources, key metrics, and visualization techniques into actionable strategies. Runs on ChatGPT, Claude, and Gemini.

30
## Role
You are an expert sales performance analyst specializing in KPI measurement and actionable improvement strategies.

## Task
Analyze the provided sales performance data to identify trends, patterns, and gaps between targets and actual results. Deliver a structured KPI dashboard followed by specific recommendations for improvement.

## Context
**Sales team context:** {{sales-team-context}}

**KPIs to track:** {{kpis}}

## Output
1. Create a markdown table with columns for KPI, Description, Target, and Actual Performance
2. For each KPI, provide:
   - Clear description of what is measured
   - Realistic target value
   - Current actual performance
3. Below the table, provide a bullet-point list analyzing:
   - Key trends and patterns in the data
   - Significant discrepancies between targets and actuals
   - Root causes where evident
   - 3-5 actionable recommendations prioritized b

Sales KPI Tracking Dashboard Prompt for ChatGPT

Generates a structured KPI performance table with target vs. actual analysis and prioritized recommendations for sales improvement. Runs on ChatGPT, Claude, and Gemini.

30
## Role
You are a data quality expert specializing in educational analytics and institutional data governance.

## Task
Develop a comprehensive plan to improve data quality checking methods and analytics processes for an educational institution. Analyze current practices, propose specific improvements across all dimensions of data quality (accuracy, completeness, consistency, timeliness, relevance), and quantify expected benefits.

## Context
**Institution & Current State:**
{{institution-and-current-practices}}

**Analytics Goals & Resources:**
{{goals-resources-and-sources}}

Address:
- Automated data validation tools and technologies
- Data governance policies and accountability frameworks
- Regular audit schedules and quality metrics
- Implementation challenges and mitigation strategies
- Change management for stakeholder adoption

## Output
Present your plan as a markdown table with

Data Quality Improvement Plan Generator for Education

Generates a structured plan to improve data quality checking methods and analytics processes for educational institutions, delivered as a markdown table comparing current methods, proposed improvements, and expected benefits. Runs on ChatGPT, Claude, Gemini, and Grok.

29

A/B Testing Plan for Online Conversion Optimization

Generates a comprehensive A/B testing framework with variables, methodology, sample size requirements, and interpretation guidelines to optimize online sales conversion rates. Runs on ChatGPT, Claude, Gemini, and Grok.

29

Draft Dataset Descriptions Following Datasheets Framework

Generates comprehensive dataset documentation following Timnit Gebru's "Datasheets for Datasets" framework to promote transparency and responsible AI usage. Runs on ChatGPT, Claude, Gemini, and Grok to produce structured text documentation covering motivation, composition, collection, preprocessing, intended uses, and known limitations.

29

Analyze Recruitment Cost Drivers

Generates an Activity-Based Costing report that breaks down recruitment expenses by activity, role level, and source to identify hidden costs and optimization opportunities. Runs on ChatGPT, Claude, Gemini, and Grok.

29
## Role

You are a data cleaning specialist who diagnoses missing data patterns, evaluates handling strategies against data integrity constraints, and implements pandas-based solutions.

## Task

Guide the user through missing data handling in four phases:

**Phase 1: Pattern Discovery**
Analyze the dataset and generate missing data visualizations (heatmaps, correlation plots, percentage summaries) to reveal missingness patterns.

**Phase 2: Strategy Recommendation**
Present relevant strategies with trade-offs:
- **Drop**: When <5% missing, random patterns; shows row/data loss
- **Forward/Backward Fill**: For time series; shows temporal assumptions
- **Mean/Median Imputation**: For numerical MCAR; shows variance reduction risk
- **Mode/Constant Fill**: For categorical; shows artificial pattern risk
- **Hybrid/Conditional**: For complex patterns; shows group-specific logic
- **Interpolati

Missing Data Analysis and Handling Prompt

Generates a four-phase guided workflow for diagnosing missing data patterns, recommending imputation strategies, and implementing pandas-based solutions with before/after validation. Runs on ChatGPT, Claude, and other text models.

29
## Role

You are a feature engineering architect who transforms raw data into representations that reveal hidden patterns to machine learning algorithms. Your approach combines domain knowledge, mathematical transformations, and interaction terms.

## Task

Generate creative feature engineering ideas that unlock predictive power from raw data. Analyze the dataset characteristics, identify potential patterns, consider domain-specific transformations, explore mathematical operations, and prioritize by expected impact.

## Context

The user faces a machine learning challenge where basic features fail to capture complex data relationships, causing model performance to plateau. They need feature transformations that make patterns obvious to algorithms.

**Dataset and goals:**
{{dataset-and-goals}}

*Describe: dataset characteristics (columns, data types, size, domain), prediction goal, curren

Feature Engineering Strategy Generator for ML Models

Generates systematic feature engineering strategies that transform raw data into predictive signals for machine learning models. Designed for ChatGPT, Claude, and Gemini to analyze datasets and recommend domain-specific transformations, mathematical operations, and interaction terms.

29

A/B Testing Plan for Direct Response Copy

Generates multiple direct response copy variations with distinct messaging angles and designs a complete A/B testing plan to improve conversion rates. Built for ChatGPT, Claude, and Gemini.

28

Engagement Dashboard Design Prompt for HR Analytics

Builds a comprehensive engagement dashboard blueprint that connects employee sentiment data to business outcomes. Runs on ChatGPT, Claude, Gemini, and Grok to generate multi-layer analytics architectures with executive summaries, trend visualizations, and risk heat maps.

28
## Role
You are a time series validation specialist focused on educational forecasting. You stress-test models against edge cases, seasonal disruptions, and anomalous periods that standard validation misses, particularly for resource planning decisions.

## Task
Evaluate the predictive performance of an ARIMA model forecasting monthly course completion rates. Identify failure modes, select appropriate accuracy metrics, and provide actionable recommendations for model improvement.

## Context
{{dataset-and-model-details}}

Provide:
- Dataset timeframe and typical completion rate range
- ARIMA(p,d,q) parameters used
- Forecasting horizon requirements (1-month, 3-month, 6-month, etc.)
- Institutional context (semester schedule, known disruptions, policy changes)

## Validation Requirements
- **Accuracy metrics**: Include point forecast measures (MAE, RMSE, MAPE) and prediction interval cove

Evaluate ARIMA Model Metrics

Evaluate ARIMA model performance on course completion rates with this AI prompt, focusing on seasonal variations and external disruptions.

28
## Role
You are an expert data analyst specializing in categorical data analysis and Python programming.

## Task
Generate comprehensive frequency count analysis that reveals category distributions, identifies dominant patterns, detects rare cases, and uncovers potential data quality issues.

## Context
Frequency tables are the foundation of categorical analysis. The analysis must enable quick pattern recognition and informed decision-making by:
- Examining dataset structure and categorical columns
- Creating sorted frequency counts with absolute numbers and percentages in descending order
- Validating data quality (missing values, unusual patterns, potential entry errors)
- Providing interpretive insights about distributions, dominant patterns, and anomalies

**Dataset and scope:**
{{dataset-description}}

**Analysis focus:**
{{analysis-focus}}

## Output
Provide:
1. Executable Python c

Frequency Count Analysis for Categorical Data

Generates Python code and interpretive insights that reveal category distributions, dominant patterns, rare cases, and data quality issues in categorical datasets. Runs on ChatGPT, Claude, Gemini, and Grok.

28

Feature Importance Explanation Prompt for ML Models

Generates structured feature importance analysis for machine learning models, explaining which features drive predictions and why. Runs on ChatGPT, Claude, and other text models to produce interpretability reports with SHAP, permutation importance, and actionable insights.

28

A/B Test Analysis and Optimization Prompt

Generates statistical analysis and actionable recommendations from A/B test data. Runs on ChatGPT, Claude, Gemini, and Grok to compare variants, determine winners, and deliver optimization strategies grounded in user behavior insights.

28

Partner Revenue Tracker Table Generator

Generates a structured 6-column markdown table that tracks partner revenue, costs, ROI calculations, and performance insights. Runs on ChatGPT, Claude, Gemini, and Grok.

28
## Role

You are an expert data analyst specializing in robust pandas data ingestion. You guide users through loading datasets using proven pandas techniques, automatically handling encoding issues, delimiter detection, and common file format pitfalls.

## Task

Guide the user through a 4-phase data loading workflow:

**Phase 1: Data Source Discovery**

Ask the user for:
1. Dataset location (file path, URL, or "upload")
2. File type (CSV, Excel, JSON, or "unknown")
3. Known quirks (encoding issues, unusual delimiters, or "none")

Based on their answers, proceed to Phase 2.

**Phase 2: Intelligent Loading Strategy**

Provide custom pandas code that includes encoding detection, delimiter inference, error handling, and memory optimization. Use this template:

```python
import pandas as pd
import chardet
from pathlib import Path

def detect_encoding(file_path):
    with open(file_path, 'rb')

Load Dataset With Pandas Prompt for ChatGPT

Generates a four-phase guided workflow that walks users through robust pandas data loading, automatically handling encoding detection, delimiter inference, and common file format issues. Runs on ChatGPT, Claude, Gemini, and Grok.

27

What are AI prompts for Data Analysis?

AI prompts for Data Analysis are engineered instructions that already work. These are not one-line questions. Each one fixes the role, the context, the task and the output format before you type a word, so you get a usable result on the first run instead of the fourth.

They cover the work Data Analysis actually get asked for: research and briefs, copy and content, analysis and reporting, planning, outreach and the admin that eats the day. Open a card to see the full prompt and the output it returns.

The deepest areas here: Data Insights (88 prompts), Reporting & Dashboards (64 prompts), Data Visualization (28 prompts), Data Cleaning (26 prompts), Spreadsheets & Formulas (18 prompts).

Popular on this page right now: "Export Cleaned Data to CSV Prompt", "Affiliate Performance Analysis and Ranking Prompt", "Customer Acquisition Cost (CAC) Calculator Prompt".

253 on this page, every one scoped to Data Analysis. Free to read, free to copy.

Why these prompts work for Data Analysis

A weak prompt costs you the hour you were trying to save: you rewrite it three times, get something generic, then finish the job by hand. An engineered prompt front-loads that thinking once.

In Data Analysis that means first drafts you can send, analysis you can act on, and the repetitive work handed off, so the time goes into judgement instead of typing.

Every prompt here was written for a real job and tested against the models people actually use. Nothing scraped from a thread.

How to use these prompts

Open a prompt, copy it, and replace the [bracketed] variables with your own product, audience or topic. The structure around them stays as is. That structure is the part doing the work.

Paste it into ChatGPT, Claude, Gemini, Grok or the model you already use. If the output drifts, tighten the context line instead of rewriting the whole prompt.

No account needed to copy one. No setup, no extension, nothing to install.

Which AI tool works best for Data Analysis prompts?

Text prompts here run well in ChatGPT, Claude, Gemini and Grok; image prompts target Midjourney and Nano Banana. Each card lists the models it was tested with.

Are these AI prompts free to use?

A big part of the library is free: open a prompt, copy it, use it. Premium packs and the Complete AI Bundle unlock the full collection with lifetime updates.

How do I adapt these prompts to my use case?

Start with the [variables]: niche, audience, constraints. If the result still misses, add one example of the output you want. A single good example beats three extra instructions.

For a prompt built from scratch, the Start Now card above opens the custom prompt generator.

Related resources

Get smarter on AI every week

One email a week with the best new prompts, tools, and model updates. Unsubscribe anytime.

Join 100,000+ subscribers. One email a week, real prompts, tools, and model updates. Unsubscribe anytime.