clean_replace
Replace values in a specified column using a custom mapping, with support for mapping to NULL to remove sentinel values like 'NA' or -999.
Instructions
New source with column values replaced per mapping.
Use the JSON value `null` (Python `None`) to map to SQL NULL — the
canonical way to remove sentinel values like 'NA' or -999.
Example: `mapping={"NA": null, "?": null, -999: null}`.
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>",
"column": "<column>",
"mapping": "<mapping>"
},
"name": "clean_replace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alias | No | ||
| column | Yes | ||
| mapping | Yes | ||
| source_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||