nanmin
Nanmin is a numerical computing function in NumPy that computes the minimum value of an array or along a specified axis while ignoring NaN (not-a-number) values. It is part of NumPy’s family of “nan” functions, which provide reductions that skip invalid or missing entries in the data.
The function accepts an input array and optional parameters that control the reduction. The axis parameter
Nanmin is essentially equivalent to applying the standard minimum reduction to the data after removing or
Examples illustrate its behavior. For instance, given a = [1.0, NaN, 3.0], nanmin(a) yields 1.0. For a
Related functions include nanmax, nanmean, and other NumPy nan- reductions, which provide similar behavior for maximum,