max

statistics

Finds the maximum value

Syntax

max(array|dataframe)

Parameters

array|dataframe (array or dataframe)

The data to find the maximum value in

Returns

number

The maximum value

Examples

Input:
[5, 2, 8, 1, 9] | max
Output:
9
Find minimum and maximum prices from products
Input:
map(.price) | {min: min, max: max}
Output:
{"min": 9.99, "max": 199.99}

The max() function finds the maximum (largest) value in an array or DataFrame column.

Usage

Use max() to identify the largest value in your data, useful for range analysis and boundary detection.

Related Functions