clean_transform
Apply mathematical transforms to numeric columns to normalize data: use log1p, sqrt, z-score, or min-max scaling to handle skew and rescale values.
Instructions
Apply mathematical transforms to numeric columns in place.
`mapping` is `{column: kind}` where kind is one of:
`log1p` → LN(x + 1) — handles zeros, common for skewed counts
`sqrt` → SQRT(MAX(0, x)) — gentler than log
`z_score` → (x - mean) / std — zero-mean, unit-variance
`min_max` → (x - min) / (max - min) — rescale to [0, 1]
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": {
"source_id": "<source_id>",
"mapping": "<mapping>"
},
"name": "clean_transform"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alias | No | ||
| mapping | Yes | ||
| source_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||