The problem is that `nanargmin/nanargmax` give an integer result type (as argmin/argmax), but when there are only nan along the axis somewhere, `_nanop` tries to put in `np.nan`. Now that gives useful results for operations like nansum, etc. but for these two with their integer datatype you risk getting INT_MIN which is bogus, and is a change in behavior in 1.7.