set_datetime_index
Set a datetime column as the DataFrame index for time-series resampling. Automatically sorts by index.
Instructions
Set a datetime column as the DataFrame index. Set datetime column as DataFrame index. Required for time-series resampling. Sorts by index automatically. Example: set_datetime_index(column="date")
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": {
"column": "<column>"
},
"name": "set_datetime_index"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| column | Yes | ||
| df_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |