compute_statistic
Compute a requested statistical metric on a specified dataset column, including mean, median, standard deviation, variance, min, max, sum, mode, counts, and null count, to answer data analysis questions.
Instructions
Compute a specific statistical metric on a column. Supported stats: 'mean', 'median', 'std', 'var', 'min', 'max', 'sum', 'mode', 'positive_count' (count of >0), 'negative_count' (count of <0), 'zero_count' (count of ==0), 'count', 'null_count'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stat | Yes | ||
| column | Yes | ||
| sample | No | ||
| session_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |