Python Get minimum value without -inf
<p>I am trying to find the minimum of an array without -inf values. What I could find there is numpy function to filter out NaNs but not -inf:</p>

<pre><code>import numpy as np
np.nanmin([1, 2, np.nan, np.NINF])
</code></pre>

<p>The desired output is:</p>

<pre><code>1
</code></pre>