Handle Missing Values
handle_missing_valuesDrops dataset rows with up to 5% missing values and columns with 60% or more missing values, leaving moderate missingness unchanged for separate imputation.
Instructions
Automatically handle missing values based on their percentage.
up to 5% missing: drop the rows that contain the missing values
60% or more missing: drop the column
5%-60%: leave unchanged (use the fill_missing_* tools or impute_missing) Args: dataset_id (str): ID of the dataset. Returns: dict: dropped columns, the columns used for row removal and the row counts.
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": {
"dataset_id": "<dataset_id>"
},
"name": "handle_missing_values"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dataset_id | Yes |