add_row_index
Add a numeric row index column to your dataframe. Reset row numbering after filtering or create unique IDs for each row.
Instructions
Add or reset a numeric row index as a column. Add a numeric identifier column. Useful after filtering to create unique IDs or reset row numbering. Example: add_row_index(column_name="row_id", start=1)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "add_row_index"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| start | No | ||
| df_name | No | ||
| column_name | No | index |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |