Trying to get my head around this...
a = float("NaN")
a == float("NaN")
Out: False
np.isnan(a)
Out: True
Trying to get my head around this...
a = float("NaN")
a == float("NaN")
Out: False
np.isnan(a)
Out: True
"NaN" means that it isn't equal to anything. So {thing1 which is NaN} == {thing2 which is NaN} will always be "False" because NaN is not equal to anything, including itself.