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}
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 | |||