get_correlations
Compute pairwise correlations between numeric columns to reveal the strongest significant relationships, sorted by absolute correlation. Supports Pearson and Spearman methods.
Instructions
Compute pairwise Pearson correlations between numeric columns. Returns pairs sorted by |r| descending, filtered to significant correlations. Use this to discover relationships in the data without manual exploration. top_n capped at 200.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top_n | No | Max pairs to return (default 20, max 200) | |
| method | No | Correlation method (default 'pearson'). Spearman is rank-based — robust to outliers and monotonic non-linear relationships (B10). | pearson |
| columns | No | Restrict to specific numeric columns (default: all numeric) | |
| dataset | Yes | Dataset identifier | |
| min_abs_correlation | No | Minimum |r| to include in results (default 0.3) |