Skip to content

API Reference parrot_tools.correlationanalysis

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot_tools.correlationanalysis

View source

Correlation Analysis Tool - Analyze correlations between a key column and other columns.

FEAT-423: matplotlib/seaborn replaced with altair. Heatmap and bar chart outputs are Vega-Lite JSON specs the frontend renders natively, instead of base64-encoded PNG images.

Alias AbstractTool

Re-exported from parrot_tools.abstract.AbstractTool.

Class CorrelationAnalysisArgs

Arguments schema for Correlation Analysis.

Fields:

Field Type Default Description
dataframe Any Pandas DataFrame to analyze
key_column str Column name to use as the key for correlation comparison
comparison_columns Optional[List[str]] None List of column names to compare with key column. If None, uses all numeric columns except key column
correlation_method CorrelationMethod CorrelationMethod.PEARSON Correlation method to use: pearson, spearman, or kendall
output_format OutputFormat OutputFormat.ALL Output format: json, dataframe, heatmap, or all
min_correlation_threshold float 0.0 Minimum absolute correlation value to include in results
sort_by_correlation bool True Sort results by absolute correlation value (descending)
exclude_self_correlation bool True Exclude the key column from correlation with itself
filename Optional[str] None Optional filename to save the heatmap Vega-Lite spec as JSON (without extension)
heatmap_style str 'coolwarm' Vega-Lite color scheme for the heatmap: coolwarm (mapped to 'redblue'), viridis, plasma, turbo, etc. — see https://vega.github.io/vega/docs/schemes/
figure_size tuple (10 Figure size for heatmap (width, height)

Class CorrelationAnalysisTool

Tool for analyzing correlations between a key column and other columns in a DataFrame.

This tool helps identify relationships between a target variable and potential predictor variables, useful for business analytics, feature selection, and exploratory data analysis.

Attributes:

Attribute Type Description
name str
description str
return_direct bool

Class CorrelationMethod

Available correlation methods.

Class OutputFormat

Available output formats.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally