NumPy | max method
max(~) method computes the maximum value of the input array along the specified axis. This is just an alias for Numpy's
amax(~), so check out the full docs here.
The input array.
The allowed values are as follows:
Maximum computed column-wise
Maximum computed row-wise
Maximum computed from entire array
If the computed maximum is less than
initial will be returned instead.
Instead of considering all the values, we can choose which values to consider by providing this parameter. Only values corresponding to
True in the mask will be considered.