median
Computes the middle value of a list of numbers, returning the central number or the average of the two middle values for even-length data.
Instructions
Computes the median of a list of numbers.
Args: data: A list of numerical values.
Returns: On success: {"result": } On error: {"error": }
Examples: >>> median([1, 2, 3, 4]) {'result': 2.5}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes |