get_correlations
Compute pairwise Pearson or Spearman correlations between numeric columns. Get significant pairs sorted by strength to uncover relationships in tabular data without manual exploration.
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) |