GitHub Copilot Prompt for Survey Analysis
Survey analysis is a crucial step to extract actionable insights from raw data. GitHub Copilot, through its code generation and contextual understanding capabilities, becomes a powerful ally to automate response processing, identify statistical trends, and produce relevant visualizations. Whether you work with CSV files exported from Google Forms, Typeform, or SurveyMonkey, Copilot can help you quickly write Python or R code to clean data, calculate distributions, perform cross-tabulations, and generate clear charts. Instead of spending hours manually manipulating spreadsheets, you can describe in natural language what you want to analyze and let Copilot generate the corresponding code. This approach is particularly effective for product teams, UX researchers, and marketing managers who need to quickly transform hundreds of responses into concrete recommendations. The prompt below is designed to maximize the relevance of Copilot's suggestions by clearly structuring your analysis expectations.
The prompt
Complete survey analysis
Source file: survey_results.csv
Columns: timestamp, age_group, satisfaction (1-5), recommend (yes/no), open_feedback
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
1. Load data and display a statistical summary (number of respondents, completion rate, distribution by age group)
2. Calculate the average satisfaction score overall and by demographic segment (age_group)
3. Calculate the Net Promoter Score (NPS) from the recommend column
4. Identify correlations between satisfaction and propensity to recommend
5. Extract recurring themes in open-ended responses (open_feedback) with keyword frequency counting
6. Generate 4 visualizations: satisfaction distribution (histogram), NPS by segment (barplot), word cloud of feedback, correlation matrix
7. Produce an executive summary in markdown with the top 5 insights and 3 actionable recommendations
Personalize this prompt with Léa
Answer 3 questions and Léa tailors the prompt to your situation.
Why it works
This prompt works because it provides Copilot with the complete dataset context (filename, exact columns, data types) and breaks down the analysis into precise numbered steps. The sequential comment structure guides Copilot to generate code block by block rather than a monolithic response. Including specific metrics (NPS, correlations, textual analysis) forces relevant technical suggestions rather than generic code.
Expected result
Variants by level
FAQ
Can GitHub Copilot directly analyze a CSV file without me writing code?
How do I adapt the prompt if my survey uses different scales (7-point Likert, multiple choice, ranking)?
Can Copilot help me analyze open-ended responses from a French survey?
Related prompts
How to use this prompt
- Copy the prompt with the button above.
- Paste it into ChatGPT, Claude or your favorite AI assistant.
- Replace the bracketed variables with your details, then refine the result.
About Prompt Guide
Prompt Guide is a free library of 2500+ ready-to-use prompts for ChatGPT, Claude and other AIs, with guides to learn prompting and tools to build and optimize your own prompts.
More prompts to explore
GitHub Copilot Prompt for Writing a Business Proposal
GitHub Copilot, the coding assistant developed by GitHub and OpenAI, is not limited to code generation. Thanks to its advanced natural language understanding capabilities, it becomes a formidable ally for writing structured professional documents, including business proposals.
GitHub Copilot Prompt for Writing a Contract
GitHub Copilot, the AI-powered coding assistant, proves to be a remarkably versatile tool that goes far beyond the scope of software development. Among its lesser-known applications, contract drafting is a particularly relevant use case.
GitHub Copilot Prompt for Writing a Dissertation
GitHub Copilot, the AI-powered coding assistant developed by GitHub and OpenAI, is not limited to software development. Its generation capabilities...
GitHub Copilot Prompt for Writing a Job Offer
GitHub Copilot, the coding assistant developed by GitHub and OpenAI, is not limited to code generation. Thanks to its advanced completion and
GitHub Copilot Prompt for Writing a Press Release
GitHub Copilot, the coding assistant developed by GitHub and OpenAI, is not limited to code generation. Thanks to its advanced natural language processing capabilities, it can also assist you in writing professional content such as press releases.
GitHub Copilot Prompt for Writing a Professional Bio
GitHub Copilot, the AI-powered coding assistant, proves surprisingly effective for writing tasks like creating a professional bio.
Go further
Get new prompts every week
Join our newsletter.