Convert Data Types
convert_data_typesConverts a dataset column to int, float, string, category, or datetime; use it to fix mismatched data types before analysis or modeling. For int, fill or drop missing values first.
Instructions
Convert a column to a specified data type. Args: dataset_id (str): ID of the dataset. col_name (str): Column to convert. convert_type (str): One of int, float, string, category, datetime. "int" needs a column without missing values (fill or drop them first). Returns: dict: the column and its new dtype.
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>",
"col_name": "<col_name>",
"convert_type": "<convert_type>"
},
"name": "convert_data_types"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| col_name | Yes | ||
| dataset_id | Yes | ||
| convert_type | Yes |