compute_metrics
Compute year-over-year changes, per-capita values, growth rates, and index (base=100) from tabular data using time and entity columns.
Instructions
Compute derived metrics: YoY changes, per-capita, growth rates, index (base=100).
Returns: {yoy_changes, per_capita, growth_rates, index_values, derived_data}
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": {
"data": "<data>"
},
"name": "compute_metrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Row dicts | |
| time_column | No | Temporal column for YoY/growth | |
| entity_column | No | Entity names for per-entity breakdown | |
| population_column | No | Population counts for per-capita |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||