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
Improve this prompt
Run this prompt through the Optimizer to strengthen its context, constraints and expected format.
Improve this prompt with the OptimizerComments
- 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
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.
Convert CSS to Tailwind
Migrate from standard CSS to Tailwind CSS
Non-Disclosure Agreement (NDA)
NDA
Product Metrics Framework
Define product metrics