Function max
pub fn max<T>(
array: &PrimitiveArray<T>,
) -> Option<<T as ArrowPrimitiveType>::Native>Expand description
Returns the maximum value in the array, according to the natural order. For floating point arrays any NaN values are considered to be greater than any other non-null value
ยงExample
let array = Int32Array::from(vec![4, 8, 2]);
let result = max(&array);
assert_eq!(result, Some(8));