method
masked_array.
ptp
Return (maximum - minimum) along the given dimension (i.e. peak-to-peak value).
Axis along which to find the peaks. If None (default) the flattened array is used.
Alternative output array in which to place the result. It must have the same shape and buffer length as the expected output but the type will be cast if necessary.
Value used to fill in the masked values.
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.
A new array holding the result, unless out was specified, in which case a reference to out is returned.
out