NumPy参考 >数组对象 >Masked array operations >numpy.ma.is_mask > numpy.ma.max
numpy.ma.
max
(obj, axis=None, out=None, fill_value=None, keepdims=<no value>)[source]¶Return the maximum along a given axis.
Axis along which to operate. By default, axis
is None and the
flattened input is used.
Alternative output array in which to place the result. Must be of the same shape and buffer length as the expected output.
Value used to fill in the masked values. If None, use the output of maximum_fill_value().
If this is set to True, the axes which are reduced are left in the result as dimensions with size one. With this option, the result will broadcast correctly against the array.
New array holding the result.
If out
was specified, out
is returned.
See also
maximum_fill_value
Returns the maximum filling value for a given datatype.