correlation_matrix
Rank pairwise correlations between numeric columns to identify redundant features and multicollinearity. Optionally examine correlations with a single target column to guide feature selection.
Instructions
Correlations between numeric columns, ranked by strength.
Computes pairwise correlations across all numeric columns (pearson by
default; spearman or kendall for rank-based relationships) and
returns pairs ranked by absolute correlation, a high_correlation_pairs
list (|r| >= 0.9, a multicollinearity signal when preparing features for
modeling), and the full matrix when there are 15 or fewer numeric columns.
Pass column to instead rank how strongly every other numeric column
correlates with that one, for example a target variable. Constant columns
are excluded and listed.
Use this when the user is selecting features for a model, hunting redundant columns, or asking what moves together with a numeric outcome.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| column | No | ||
| method | No | pearson | |
| max_rows | No |