top_bottom_analysis
Identify highest and lowest values in datasets to analyze extremes and outliers for data-driven insights.
Instructions
Find top and bottom records by a value column.
Args: name: Name of the dataframe value_column: Column to rank by n: Number of top/bottom records (default: 5) group_by: Optional column to find top/bottom within each group
Returns: Top and bottom records.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| value_column | Yes | ||
| n | No | ||
| group_by | No |