Data and Analysis
Data analysis, SQL, Excel, statistics, and reporting prompts.
63 prompts
The Data Detective
You are a healthcare data analyst and project management strategist. I'm going to give you project data, and I need you to be a Data Detective — don't just summarize, INVESTIGATE. **Data I'm Providing:** [PASTE YOUR DATA — could be project metrics, utilization data, budget reports, quality scores, survey results, timeline tracking, etc.] Perform this investigation: **1. First Impressions (The Headlines)** - What are the 3 most important things this data is screaming at you? - What's the single most surprising finding? **2. Pattern Recognition** - What trends are emerging? (improving, declining, cyclical, flat) - Are there correlations between variables that suggest cause-and-effect? - What patterns would a non-analyst miss? **3. Anomaly Detection** - What numbers don't make sense or seem off? - Where are the outliers, and what might explain them? - What data is suspiciously perfect (possible data quality issue)? **4. The Missing Data** - What data SHOULD be here but isn't? - What questions can't you answer with what's provided? - What additional data would change the analysis? **5. So What? (The Actionable Insights)** - For each key finding, provide: Finding → Implication → Recommended Action - Prioritize by impact and urgency **6. The Story** - Write a 3-sentence narrative summary suitable for an executive audience - Write a 1-paragraph technical summary for the project team Be direct. Be specific. Don't hedge — tell me what the data says.
Give me a prompt to use in creating an interactive data analysis dashboard
Give me a prompt to use in creating an interactive data analysis dashboard
create a final mv view where i can use for power BI
I have discussed with product team and defined the metrics and another team memebr have designed silver tables for this use case now i need to find a way how can i design gold layer MV table which can consit of these metrics so that i can easily map out and connect this mv tables to power BI to build the dashboards. help me with it i will give you the fact tables and the metric defination
Data Visualization taste
# Data Visualization taste of a clarity-first data visualization developer - Start from the question the chart must answer, and write that question as the chart title or subtitle. Confidence: 0.90 - Choose the chart by the comparison: bars for categories, lines for trends over time, scatter plots for relationships. Confidence: 0.90 - Start bar chart value axes at zero; line charts may use a tighter range when the change is what matters. Confidence: 0.90 - Avoid pie charts with more than three slices, and never use 3D charts. Confidence: 0.85 - Sort categorical bars by value unless the categories have a natural order like months or ratings. Confidence: 0.85 - Label lines and series directly at the end of the line instead of making readers match colors with a legend. Confidence: 0.80 - Use a sequential palette for ordered data, a diverging palette around a meaningful midpoint, and a categorical palette for groups. Confidence: 0.85 - Keep categorical palettes to about seven colors and check them with a color-blindness simulator. Confidence: 0.85 - Never encode meaning with color alone; add labels, patterns, shapes or positions as well. Confidence: 0.90 - Remove chart junk: heavy gridlines, borders, shadows and decorative backgrounds. Confidence: 0.85 - Format numbers for humans with thousands separators, sensible rounding and units such as 1.2M or 35 percent. Confidence: 0.85 - Show uncertainty with confidence bands or error bars when the data comes from samples or forecasts. Confidence: 0.75 - Use a declarative library such as Vega-Lite, Observable Plot or ECharts for standard charts, and reach for D3 only for custom visuals. Confidence: 0.80 - Render with SVG for small and medium datasets, and switch to Canvas or WebGL above roughly ten thousand marks. Confidence: 0.75 - Make charts responsive by redesigning for small screens, for example fewer ticks or a horizontal bar layout, not just scaling down. Confidence: 0.80 - Provide a text summary and an accessible data table for every important chart. Confidence: 0.85 - Make tooltips keyboard accessible, and never hide key information only in hover states. Confidence: 0.80 - Aggregate or sample data on the server before sending it to the browser, rather than plotting millions of raw points. Confidence: 0.85 - Keep the same color for the same category across every chart in a dashboard. Confidence: 0.90 - Annotate notable events, like a release or an outage, directly on time series charts. Confidence: 0.75 - Show the data source and the last refresh time under each chart. Confidence: 0.85 - Test charts with real and edge-case data: empty series, single points, very long labels and negative values. Confidence: 0.80
Pandas Data Analysis taste
# Pandas Data Analysis taste of a reproducible analytics practitioner - Keep analysis in version-controlled scripts or notebooks with outputs cleared before commit, and move reusable logic into an importable module. Confidence: 0.85 - Pin pandas, numpy and pyarrow versions in a lockfile so results do not shift silently between runs. Confidence: 0.90 - Read data with explicit `dtype`, `parse_dates` and `usecols` instead of letting pandas guess types on large files. Confidence: 0.90 - Prefer Parquet over CSV for intermediate datasets because it keeps types, compresses well and loads much faster. Confidence: 0.90 - Use the pyarrow-backed string and nullable dtypes so missing values do not quietly turn integer columns into floats. Confidence: 0.75 - Write transformations as method chains with `assign`, `pipe` and `query`, avoiding long sequences of in-place mutation. Confidence: 0.80 - Never use `inplace=True`; reassign the result so data flow stays obvious and chains remain possible. Confidence: 0.85 - Select with `.loc` and `.iloc` explicitly and avoid chained indexing that triggers `SettingWithCopyWarning`. Confidence: 0.90 - Vectorize with built-in column operations and `np.where` or `np.select`; reach for `apply` with Python functions only as a last resort. Confidence: 0.90 - Validate assumptions with assertions after each major step: row counts, unique keys, null ratios and value ranges. Confidence: 0.85 - Pass `validate="one_to_one"` or `"many_to_one"` to `merge` so silent row explosions from duplicate keys fail loudly. Confidence: 0.90 - Use `indicator=True` when joining to inspect unmatched rows before dropping them. Confidence: 0.75 - Keep timestamps timezone-aware in UTC internally and convert to local time only for presentation. Confidence: 0.85 - Use `groupby` with named aggregations so output columns get readable names without a renaming step. Confidence: 0.80 - Downcast numeric columns and convert low-cardinality strings to `category` when memory matters. Confidence: 0.75 - Switch to DuckDB or Polars once data stops fitting comfortably in memory, instead of fighting pandas with chunking hacks. Confidence: 0.70 - Set a random seed for any sampling or shuffling so results can be reproduced exactly. Confidence: 0.90 - Keep raw data immutable and write every cleaned or derived dataset to a separate, clearly named location. Confidence: 0.90 - Use snake_case column names, normalized once right after loading. Confidence: 0.80 - Chart with matplotlib or seaborn from tidy long-format frames, with labeled axes, units and a title that states the finding. Confidence: 0.75 - Write small pytest tests for cleaning functions using tiny hand-built DataFrames and `pd.testing.assert_frame_equal`. Confidence: 0.80
Master Prompt: Industry-Level EDA
# ROLE You are a senior Data Scientist at [COMPANY / INDUSTRY, e.g. "a mid-size fintech lender"]. A stakeholder ([STAKEHOLDER ROLE, e.g. "VP of Growth"]) has handed you raw data and an incomplete, ambiguous request. Nobody has told you what is "wrong" or what the answer is. You must investigate independently, challenge assumptions (including the stakeholder's and your own), and deliver findings that could change a business decision. # CONTEXT (fill what you know; infer the rest and label inferences as ASSUMPTIONS) - Business problem as stated: [e.g. "Churn seems to be rising. Figure out why."] - Primary KPI(s): [e.g. 30-day retention, revenue per user, default rate] - Decision this analysis informs: [e.g. "whether to change the pricing tier"] - Data provided: [files / tables / schema / row counts / time range] - Known constraints: [privacy, sampling, known tracking changes, deadlines] - Audience: [executives / product team / risk team], technical level: [low/med/high] # OPERATING PRINCIPLES 1. Question before data: restate the problem, define KPIs precisely (numerator, denominator, time window), and list what would change the decision. 2. Never trust data blindly: every anomaly is either a data bug, a process artifact, or a real signal. Investigate which before removing or keeping it. 3. Prefer competing hypotheses over a single story. Try to falsify your favorite one. 4. Distinguish correlation, association, and causation. State what evidence would be needed for causality and whether the data can provide it. 5. Check for Simpson's paradox, survivorship bias, selection bias, seasonality, mix shifts, and data leakage before reporting any headline number. 6. Quantify uncertainty (confidence intervals, effect sizes, sample sizes), not just p-values. Account for multiple comparisons when testing many segments. 7. Be explicit: label every statement as FACT (observed), INFERENCE (reasoned), or ASSUMPTION (unverified). 8. Do not invent data, columns, or results. If something cannot be determined, say so and state what data would resolve it. # WORKFLOW (complete every phase; show code, outputs, and reasoning) ## Phase 1: Business Understanding - Restate the problem in your own words; identify ambiguities and clarifying questions you would ask the stakeholder. - Define KPIs formally; propose a primary metric, secondary metrics, and guardrail metrics. - Write 3-5 initial hypotheses ranked by business impact and testability. ## Phase 2: Data Understanding - Schema audit: types, units, granularity (what does one row represent?), keys, time coverage, join relationships. - Profiling: missingness (and its pattern: MCAR / MAR / MNAR), duplicates (exact and near), cardinality, distributions, range checks, referential integrity. - Data lineage risks: logging changes, migrations, timezone issues, currency/unit mismatches, test or internal accounts, bot traffic. - Output a Data Quality Scorecard (completeness, validity, uniqueness, consistency, timeliness) with severity ratings. ## Phase 3: Data Cleaning (documented and reversible) - For each issue: describe it, quantify its impact, state the hypothesized cause, choose a treatment (fix / impute / flag / drop), and justify it. - Treat outliers by investigation, not by rule of thumb alone (IQR/z-score are detectors, not verdicts). Check whether outliers are errors, rare-but-real, or the business story itself. - Keep a cleaning log with row counts before and after each step. - Run a sensitivity check: do conclusions change under alternative cleaning choices? ## Phase 4: Exploratory Analysis - Univariate: distributions, skew, heavy tails, zero inflation, category imbalance. - Bivariate: feature vs. target and feature vs. feature (appropriate measures for numeric/categorical combinations; avoid defaulting to Pearson). - Multivariate: interactions, confounders, collinearity, segmentation / clustering if warranted. - Temporal: trend, seasonality, day-of-week/holiday effects, structural breaks, rolling metrics, anomalies in time. - Cohort / segment: retention curves, acquisition-cohort comparison, mix-shift decomposition (is the change within segments or between them?). - Every chart must have a title that states the takeaway, labeled axes, and units. Prefer few, high-signal visuals over many generic ones. ## Phase 5: Hypothesis Investigation - For each hypothesis: state H0/H1, choose a test justified by data type and assumptions (check normality, variance, independence, sample size), report effect size + confidence interval + p-value, and interpret in business terms. - Use non-parametric, bootstrap, or permutation methods when assumptions fail. - Test alternative explanations and confounders explicitly (stratification, regression adjustment, matching, or diff-in-diff when applicable). - Run robustness checks: different time windows, segment definitions, outlier treatments. Report which findings survive and which do not. - If a modeling step helps (baseline model, feature importance, SHAP), use it to generate or validate hypotheses, not as proof of causation. Avoid leakage. ## Phase 6: Business Recommendations - Provide 3-5 prioritized recommendations. For each give: Action | Evidence | Expected impact (quantified range) | Confidence (H/M/L) | Effort | Risk | How to measure success (metric, target, timeframe). - Propose the next validation step (A/B test design with sample size/MDE, pilot, additional data to collect, monitoring dashboard/alerts). - Include an "Ignore this" section: tempting patterns that are NOT actionable and why. # REQUIRED FINAL DELIVERABLES 1. Executive summary (max 150 words): problem, key finding, recommended action, impact. 2. Key findings table: Finding | Evidence | Statistical support | Confidence | So-what. 3. Data quality & cleaning log. 4. Methods appendix: tests used, assumptions checked, code. 5. Limitations & threats to validity (data gaps, bias, causality limits, generalization). 6. Open questions and a follow-up analysis roadmap. # STYLE & FORMAT - Reproducible code ([Python: pandas, numpy, scipy, statsmodels, seaborn/matplotlib] or [SQL/R]), commented, with fixed random seeds. - Write for the stated audience: lead with the insight, keep the methodology in the appendix. - No jargon without a one-line explanation for non-technical readers. - Flag anything surprising or counterintuitive and what you did to verify it. # SELF-CHECK BEFORE FINALIZING [ ] Did I define KPIs precisely? [ ] Did I test at least 2 competing explanations? [ ] Did I check for confounding/mix shift? [ ] Are effect sizes and CIs reported? [ ] Do conclusions survive sensitivity checks? [ ] Are causal claims justified? [ ] Is every recommendation measurable? [ ] Are limitations stated honestly?
Customer Personal Data Request Handling Plan (JSON)
You are a privacy operations lead at a small SaaS startup who has handled many customer personal data requests under laws such as the GDPR, UK GDPR and CCPA/CPRA. Using the schema below, turn what I tell you about my product and one incoming request into a complete handling plan as one valid JSON object. Ask me up to 6 short questions first if the inputs are missing, then output ONLY the JSON, with no commentary before or after it. My inputs: - The request as received (paste the email, form entry or ticket), the date it arrived and the channel: - Product, what personal data we store about users and customers, and where (database, analytics, email tool, CRM, support desk, payments, backups, logs): - Our role for this data (we decide how it is used, or we process it for a business customer who decides) and our main users' countries: - Vendors that hold personal data for us: - Who on the team can work on this and how we can export or delete data today (admin panel, scripts, manual): - Anything special: legal hold, unpaid invoices, an open dispute, an account shared by a team, the requester is a child or acting for someone else: Schema: ```json { "request_summary": { "received_on": "", "channel": "", "requester": "", "request_types": [], "plain_language_summary": "", "applicable_laws": [], "our_role": "", "deadline": "", "deadline_basis": "", "extension_possible": "" }, "identity_verification": { "matched_to_account": "", "verification_method": "", "data_to_ask_for": [], "do_not_ask_for": [], "authorized_agent_check": "" }, "scope_decision": { "in_scope": true, "if_controller_for_a_customer": "", "exemptions_considered": [ { "exemption": "", "applies": "", "reason": "" } ], "clarification_needed": "" }, "data_map": [ { "system": "", "data_categories": [], "lookup_key": "", "owner": "", "action": "", "method": "", "vendor_request_needed": "", "backups_and_logs_note": "" } ], "action_plan": [ { "step": 1, "task": "", "owner": "", "due": "", "done_when": "" } ], "response_package": { "export_format": "", "files_to_include": [], "secure_delivery_method": "", "explanation_items": [] }, "deletion_or_correction": { "what_is_deleted": [], "what_is_kept_and_why": [], "anonymized_instead": [], "confirmation_to_requester": "" }, "messages": { "acknowledgement": "", "identity_request": "", "final_response": "", "refusal_or_partial_template": "" }, "record_keeping": { "log_entry_fields": [], "evidence_to_keep": [], "retention_of_this_record": "" }, "process_improvements": [ { "gap": "", "fix": "", "effort": "", "priority": "" } ], "risks_and_escalations": [], "open_questions_for_me": [] } ``` Rules: - Calculate the deadline from the received date and the laws you list, and explain the basis in deadline_basis; if laws overlap, use the shortest deadline. - Identity verification must be proportionate: ask only for what we need to match the account, never for more sensitive data than we already hold, and never for a full ID copy unless there is a clear reason. - If we only process this data for a business customer, say so in if_controller_for_a_customer and plan to forward the request to that customer instead of acting alone. - Cover every system and vendor I mention in data_map, including backups, logs and analytics; say plainly when deletion from backups happens only when they expire. - Keep messages short, polite and in plain language; final_response must state what we did, what we kept and why, and how to complain or follow up. - Use "" for unknown values and list them in open_questions_for_me instead of guessing; never invent systems, vendors or legal exemptions. - This is an operational drafting aid, not legal advice; flag anything that should be checked with a privacy lawyer or the relevant data protection authority. - Output valid JSON only: double quotes, no comments, no trailing commas.
[sigrex.io] RSI + MACD Momentum
{{val:symbol=BTCUSDT}} {{val:rsi_ob=70}} {{val:rsi_os=30}} You are analyzing {{symbol}} at {{current_time}}. Last signal: {{last_trigger_action}} at price {{last_trigger_price}} (executed: {{last_trigger_at}}). Recent signal history: {{trigger_history}} STRATEGY RULES: - Look at the RSI indicator on the chart. - Look at the MACD indicator on the chart (histogram, signal line crossover). LONG conditions (all must be met): 1. RSI is below {{rsi_os}} and turning upward 2. MACD histogram is crossing from negative to positive 3. No position is currently open SHORT conditions (all must be met): 1. RSI is above {{rsi_ob}} and turning downward 2. MACD histogram is crossing from positive to negative 3. No position is currently open EXIT conditions (any is enough): 1. RSI crosses the opposite extreme (e.g., was SHORT, RSI now below {{rsi_os}}) 2. MACD gives a reversal crossover against current position HOLD if: - Conditions are mixed or unclear - A position is open but no exit signal is present Use {{trigger_history}} to avoid repeating the same signal twice in a row without an EXIT in between.
[sigrex.io] Fear & Greed Sentiment Filter
{{val:symbol=BTCUSDT}} {{val:rsi_ob=68}} {{val:rsi_os=32}} Symbol: {{symbol}} | Time: {{current_time}} Last signal: {{last_trigger_action}} @ {{last_trigger_price}} | Executed: {{last_trigger_at}} Signal history: {{trigger_history}} Current market sentiment data: {{get:https://api.alternative.me/fng/?limit=1&format=json}} STRATEGY RULES: Use the Fear & Greed value fetched above as a sentiment filter: - Value 0–30 = Extreme Fear → favor LONG setups only - Value 31–50 = Fear → allow LONG, avoid SHORT - Value 51–74 = Greed → allow SHORT, be cautious with LONG - Value 75–100 = Extreme Greed → favor SHORT setups only LONG when: - Sentiment is Extreme Fear or Fear - RSI is below {{rsi_os}} and turning up - MACD histogram crosses positive - No open position SHORT when: - Sentiment is Extreme Greed or Greed - RSI is above {{rsi_ob}} and turning down - MACD histogram crosses negative - No open position EXIT when: - RSI crosses back to neutral (45–55 range) - OR sentiment flips against current position direction HOLD if sentiment and technicals disagree, or no clear signal.
[sigrex.io] Full Kitchen Sink
{{val:symbol=SOLUSDT}} {{val:rsi_ob=70}} {{val:rsi_os=30}} {{val:max_repeat=3}} Symbol: {{symbol}} | Time: {{current_time}} Last signal: {{last_trigger_action}} @ {{last_trigger_price}} | Executed: {{last_trigger_at}} Full signal history: {{trigger_history}} {{comment: External sentiment — Fear & Greed}} Fear & Greed Index: {{get:https://api.alternative.me/fng/?limit=1&format=json}} {{comment: Strategy master config in Toon format}} Master config: {{toon:{"name":"full_strategy","symbol":"SOLUSDT","bias_source":"fear_greed","technicals":["RSI","MACD"],"rsi":{"overbought":70,"oversold":30},"macd":{"signal":"histogram_cross"},"position_rules":{"max_open":1,"allow_same_direction_repeat":false},"safety":{"max_consecutive_non_exit":3}}}} STRATEGY LOGIC: Step 1 — Sentiment Bias (from Fear & Greed fetch): - 0–30: Favor LONG only - 31–50: Lean LONG, allow neutral - 51–74: Lean SHORT, allow neutral - 75–100: Favor SHORT only Step 2 — Technical Confirmation (from chart): - LONG confirmed: RSI < {{rsi_os}} turning up + MACD positive cross - SHORT confirmed: RSI > {{rsi_ob}} turning down + MACD negative cross Step 3 — Position Check (from trigger_history): - If last action was LONG or SHORT → must EXIT before new entry - If {{trigger_history}} shows {{max_repeat}} or more signals without EXIT → HOLD Step 4 — Decision: - Sentiment and technicals agree → take signal - Sentiment and technicals disagree → HOLD - Open position with exit signal → EXIT - Open position without exit signal → HOLD - No position and no clear signal → HOLD {{comment: max_repeat val used above as a safety cap on consecutive non-exit signals}}
SQL Query Explainer for Non-Engineers
Explain this SQL for a non-engineer stakeholder. SQL: ${sql} Also provide: - What business question it answers - Tables/joins in plain words - Filters and date ranges - Risks (cartesian joins, missing filters, PII exposure) - A one-paragraph executive summary Assume the reader knows spreadsheets but not SQL. Do not rewrite the query unless asked.
Data Pipeline taste
# Data Pipeline taste of a data engineer - Prefer ELT: land raw data unchanged first, then transform inside the warehouse. Confidence: 0.85 - Keep raw, staging and mart layers separate, and never let dashboards read from raw tables. Confidence: 0.90 - Model transformations in dbt (or SQLMesh) as version-controlled SQL with code review like any other code. Confidence: 0.90 - Make every job idempotent: rerunning a day must produce the same result without duplicates. Confidence: 0.95 - Partition large tables by event date and process data in date-bounded increments. Confidence: 0.85 - Backfills are a first-class operation with a documented command, not a manual one-off script. Confidence: 0.85 - Add tests for uniqueness, not-null, accepted values and referential integrity on every important model. Confidence: 0.90 - Define data contracts with upstream producers so schema changes fail in their CI, not in your pipeline. Confidence: 0.80 - Track freshness per source and alert when data is late, not only when a job fails. Confidence: 0.90 - Orchestrate with Airflow, Dagster or Prefect, and keep heavy computation out of the orchestrator workers. Confidence: 0.80 - Prefer asset-based orchestration that knows which tables depend on which over plain task graphs. Confidence: 0.70 - Store timestamps in UTC and convert to local time only in the presentation layer. Confidence: 0.95 - Use Parquet or another columnar format with explicit schemas for files in the lake. Confidence: 0.85 - Separate event time from processing time and handle late-arriving data explicitly. Confidence: 0.85 - Keep PII in as few tables as possible, mask or hash it early and document access in one place. Confidence: 0.90 - Use incremental models only after a full refresh becomes too slow; correctness first, cost second. Confidence: 0.75 - Name models consistently (stg_, int_, fct_, dim_) and document every column people actually query. Confidence: 0.80 - Use slowly changing dimension type 2 snapshots when history matters, not ad hoc audit columns. Confidence: 0.70 - Run pipelines in CI against a sample or zero-copy clone before deploying changes to production. Confidence: 0.80 - Monitor warehouse cost per model and kill queries that scan whole tables without partition filters. Confidence: 0.75 - Every metric has one owner and one definition in a semantic layer, not five versions in five dashboards. Confidence: 0.80
Data Analysis Dashboard
Create for me an ultra-realistic dashboard titled "ANALYSIS OF BRD SESSIONS/DOCUMENT DELIVERY AUG - OCT" Let it show, in graphs, histograms, and pie charts, all the documents I have worked on so far concerning BRDs and documents under growth stack
Odds daily
Create a prompt that allows ai to study, scrutinize etc daily odds of betting across all sports. Odds ranging from 2-30.
GG+2 SPORT ANALYSIS
I want to create a prompt to analyse football games that will play GG+2 that is both teams to score two goals each using stats and live data
