As we know that like zero value is boolean False, my question is that why bool(np.nan)
is True
. Python version is 3.7
>>> import numpy as np
>>> bool(np.nan)
True
As we know that like zero value is boolean False, my question is that why bool(np.nan)
is True
. Python version is 3.7
>>> import numpy as np
>>> bool(np.nan)
True