plot_distribution_comparison
Compare distribution shapes across categories by overlaying KDE plots of a numeric column per group, a clearer alternative to separate histograms.
Instructions
Overlay KDE distributions of a numeric column for different groups. Better than separate histograms for comparing distribution shapes across categories. Example: plot_distribution_comparison(column="Revenue", by="CargoType")
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"column": "<column>",
"by": "<by>"
},
"name": "plot_distribution_comparison"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | Yes | ||
| column | Yes | ||
| df_name | No | ||
| save_path | No | ||
| top_n_groups | No |