> import numpy as np
> min(50, np.NaN)
50
> min(np.NaN, 50)
nan
(Same behaviour occurs with max)
I know that I can avoid this behaviour by using numpy.nanmin. But what causes the change when the order is reversed? Is min sensitive to input order?