update_row
Update specific columns in a CSV row with selective changes, tracking modifications and returning both old and new values for updated columns.
Instructions
Update specific columns in row with selective updates.
Supports partial column updates with change tracking. Returns old/new values for updated columns.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| row_index | Yes | Row index (0-based) to update | |
| data | Yes | Column updates as dict mapping column names to values, or JSON string |
Input Schema (JSON Schema)
{
"properties": {
"data": {
"anyOf": [
{
"additionalProperties": {
"anyOf": [
{
"type": "string"
},
{
"type": "integer"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
}
]
},
"type": "object"
},
{
"type": "string"
}
],
"description": "Column updates as dict mapping column names to values, or JSON string"
},
"row_index": {
"description": "Row index (0-based) to update",
"type": "integer"
}
},
"required": [
"row_index",
"data"
],
"type": "object"
}