Closed mverzett closed 4 years ago
Actually, the identity of min
is inf
, but inf
, -inf
, and nan
are only possible values for floating point, and you have integers. Therefore, we have to use the maximum possible integer for this type.
It's ugly, and I'm changing it. In the future, min
and max
will be "semigroup reducers," without an identity element, and these will show up as None
. (It will be a masked array with None
covering up the extreme value, whether that's inf
or the largest possible integer.)
Yeah, makes sense, thanks!
As you might have guessed I'm currently dealing with a lot of empty elements and I'm trying to find the best way to handle them. While trying few things I stumbled across this behaviour, probably
nan
would be more appropriate in this case