On Windows, float('nan') produces Indeterminate. To fix, set Indet first and then set NaN to the opposite.