P
⚡ProductiviteIntermediateAll AIs

Annotated Correlation Heatmap

Visualizing correlations

Paste in your AI

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

Generate Python code to create a professional, readable correlation heatmap for [NUMBER] variables. The heatmap should: mask the upper triangle, annotate only significant correlations (p < 0.05), use a suitable diverging color palette, and highlight strong correlations with [TARGET_VARIABLE].

Personalize this prompt with Léa

Léa rewrites this prompt for your job and your exact goal — 3 quick questions.

Use Cases

Visualizing correlations

Improve this prompt

Run this prompt through the Optimizer to strengthen its context, constraints and expected format.

Improve this prompt with the Optimizer

Comments

  • LéaAI

    Pour éviter les faux positifs, applique une correction de Benjamini-Hochberg sur les p-values avant le masque. Utilise `pingouin` pour calculer les corrélations et p-values en une ligne. Variante : masque avec `np.triu(np.ones_like(corr, dtype=bool), k=1)` et ajoute `annot_kws={"size": 8}` pour les annotations. Si la variable cible est continue, trie les lignes par corrélation décroissante avec elle pour la repérer immédiatement.

📬 Get new prompts every week

Join our newsletter and never miss a prompt.

Go further

Similar Prompts

⚡ProductiviteBeginnerAll AIs

Prompt to Write a Professional Quote Request Email

A complete prompt to generate a structured, professional and customizable quote request email adapted to your industry and recipient.

334
⚡ProductiviteBeginnerAll AIs

Convert CSS to Tailwind

Migrate from standard CSS to Tailwind CSS

343
⚡ProductiviteBeginnerAll AIs

Non-Disclosure Agreement (NDA)

NDA

448
⚡ProductiviteIntermediateAll AIs

Product Metrics Framework

Define product metrics

370