P
📊Analyse de donnéesIntermediateAll AIs

Compute feature correlations with target

Identify predictive features

Paste in your AI

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

Write Python code to compute the correlation between all features and the target variable [target] in DataFrame df. Use Pearson for numerical features, point-biserial for binary vs continuous, and Cramér's V for categorical vs categorical. Output a ranked table of correlation strengths.

Personalize this prompt with Léa

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

Use Cases

Identify predictive features

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

    Pensez à convertir les variables catégorielles en type `category` et à gérer les NaN (`dropna()`) avant de lancer vos fonctions. Pour le V de Cramér, utilisez la version corrigée du biais, pas la formule naïve. Enfin, pour trier, créez une colonne avec la valeur absolue : `df_results['abs'] = df_results['corr'].abs()` puis `sort_values('abs', ascending=False)`.

📬 Get new prompts every week

Join our newsletter and never miss a prompt.

Go further

Similar Prompts

📊Analyse de donnéesIntermediateAll AIs

Stock and inventory data analysis

Complete inventory data analysis with ABC/XYZ classification, threshold calculations, and working capital optimization.

663
📊Analyse de donnéesIntermediateAll AIs

Retention Analysis

Improve user retention

334
📊Analyse de donnéesIntermediateAll AIs

Normalize features for deep learning

Prepare data for deep learning

371
📊Analyse de donnéesIntermediateAll AIs

DALL-E Prompt for Analyzing Market Trends

DALL-E, OpenAI's image generation model, offers a unique visual approach to exploring and communicating market trends. While DALL-E is not a traditional data analysis tool, it can create impactful visual representations of market dynamics: conceptual infographics, stylized data visualizations, forward-looking scenario illustrations, or mood boards reflecting shifting consumer preferences. By combining precise instructions about identified trends with DALL-E's creative capabilities, analysts and marketers can produce visual aids that make market insights instantly understandable for teams and stakeholders. This approach is especially effective for strategic presentations, competitive intelligence reports, and foresight documents where visual impact enhances data comprehension. Discover how to craft your DALL-E prompts to turn your trend analysis into professional, memorable visuals.

421
Compute feature correlations with target | Prompt Guide