transform
Preprocess numeric table features into a new table using operations like log, z-score, clip, rank, detrend, returns, and row normalization while keeping labels, IDs, and datetimes unchanged.
Instructions
Preprocess the numeric features of a table into a new table (labels, ids and datetimes carried over unchanged).
ops: log1p, log (params offset), sqrt, abs, clip (lo/hi or z), winsorize (q), rank, zscore (params clip), minmax, demean, detrend (params by), diff / pct_change / log_return / cumsum along rows (params periods, by=, group_by, dropna), row_normalize (params target; library-size normalization for counts), center_rows (subtract each row's mean: removes the equal-weight market / common mode of a panel), deseasonalize (params by=, period=month|dayofweek|hour|dayofyear|quarter: subtracts per-period means -> anomalies), residualize (params on=[cols]: regress every feature on those columns and keep residuals, e.g. remove a market factor), dropna. Typical chains: counts -> row_normalize -> log1p -> project(clip_z=10); prices -> log_return -> describe; monthly series -> deseasonalize -> project(pca, standardize=False).
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": {
"name": "<name>",
"op": "<op>"
},
"name": "transform"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | ||
| name | Yes | ||
| params | No | ||
| columns | No | ||
| new_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |