P
📊Analyse de donnéesIntermediateAll AIs

GitHub Copilot Prompt for Analyzing Market Trends

GitHub Copilot, initially designed as a development assistant, proves to be a powerful tool for market trend analysis when used with the right prompts. By leveraging its code generation and data analysis capabilities, you can automate the collection, processing, and visualization of market data directly in your development environment. Whether you are a data analyst, product manager, or entrepreneur, GitHub Copilot allows you to quickly create trend analysis scripts, generate statistical models, and produce actionable visualizations. The key advantage lies in its ability to transform natural language instructions into functional code to scrape data sources, apply trend detection algorithms, and structure results in formats directly usable for decision-making. This code-first approach to market analysis offers reproducibility and scalability that no-code tools cannot match.

Paste in your AI

Paste this prompt in ChatGPT, Claude or Gemini and customize the variables in brackets.

Generate a complete Python script to analyze trends for a given market. The script must: 1) Collect data from public APIs (Google Trends via pytrends, Reddit via PRAW, and economic data via FRED) for the sector [SECTOR_NAME]. 2) Clean and normalize time-series data for the last [12/24/36] months. 3) Apply seasonal decomposition (STL) and exponential smoothing to identify underlying trends versus cyclic variations. 4) Calculate key indicators: compound growth rate, volatility, cross-source correlations. 5) Generate a report with matplotlib visualizations including: trend curve with confidence intervals, correlation heatmap, and seasonality chart. 6) Export results in structured JSON with the following metrics: trend direction (up/down/stable), signal strength (0-100), detected inflection points, and 6-month forecast. Use docstrings, typing, and modular architecture with separate classes for collection, analysis, and reporting.

Personalize this prompt with Léa

Answer 3 questions and Léa tailors the prompt to your situation.

Why this prompt works

This prompt is effective because it breaks down trend analysis into precise technical steps that GitHub Copilot can translate into functional code, with specific libraries named explicitly. The requested modular structure guides Copilot towards clean architecture rather than a monolithic script. By specifying output metrics and export formats, you ensure a result directly usable for decision-making.

Use Cases

Analyze Market Trends

Variants

Expected Output

You will obtain a Python script structured into classes with dedicated methods for multi-source collection, statistical processing, and visual report generation. The script will produce a JSON file containing quantified trend indicators and matplotlib graphs ready to be integrated into a presentation or dashboard.

Frequently Asked Questions

Can GitHub Copilot directly access real-time market data?

No, GitHub Copilot doesn't connect directly to data sources. It generates the code needed to query APIs like Google Trends, Reddit, or FRED. You'll then need to run that code in your Python environment with the appropriate API keys configured. Copilot excels at rapidly producing the collection and analysis code, but execution and data access remain on your end.

How reliable are the trend analyses generated via GitHub Copilot?

Reliability depends on two factors: the quality of the source data and the relevance of the applied statistical methods. The code generated by Copilot uses proven libraries (statsmodels, Prophet, scikit-learn), but it's essential to validate the results by checking the consistency of the collected data, testing the statistical significance of detected trends, and cross-referencing with your business expertise. Consider the results as an analytical starting point, not an absolute truth.

How can I adapt these prompts to a niche sector with limited available data?

For niche sectors, modify the prompt by adding specific instructions: broaden the search keywords with synonyms and adjacent terms, increase the time window to 36 or 48 months to compensate for low volume, and add alternative sources like specialized forums, industry publications, or patent databases. Also instruct Copilot to implement more aggressive smoothing to reduce statistical noise associated with small samples.

Learn more

Check the full skill on Prompt Guide to master this technique from A to Z.

View on Prompt Guide

📬 Get new prompts every week

Join our newsletter and never miss a prompt.

Similar Prompts

Multichannel marketing data analysis

Complete multichannel marketing performance analysis with ROI calculation, attribution models, and budget optimization.

0229

Choose the right visualization for your data

Guide the choice of optimal chart type based on data, audience, and message to communicate.

0206
📊Analyse de donnéesIntermediateAll AIs

Web analytics metrics analysis

Comprehensive web analytics metrics analysis to understand visitor behavior and identify optimization areas.

0203
📊Analyse de donnéesIntermediateChatGPT

ChatGPT Prompt for Analyzing a Survey

Survey analysis is a crucial step for transforming raw data into actionable insights. Whether you collected responses via Google Forms, Typeform, or any other tool, ChatGPT can help you identify trends, segment respondents, and draw relevant conclusions in minutes. Where an analyst would spend hours cross-referencing variables and writing a report, AI significantly speeds up the process while maintaining methodological rigor. This prompt is designed to guide ChatGPT through a structured analysis of your survey results: synthesis of quantitative data, interpretation of open-ended responses, identification of significant correlations, and formulation of concrete recommendations. It works equally well for a customer satisfaction survey, a market study, or an internal questionnaire. The proposed approach combines descriptive statistical analysis and thematic qualitative analysis, offering you a complete and nuanced view of your results without requiring advanced data science skills.

00