if something is nan python code example
Example 1: python test is nan
math.isnan(n)
Example 2: python checking if something is equal to NaN
# Test to see if it is equal to itself
def isNaN(num):
return num != num
math.isnan(n)
# Test to see if it is equal to itself
def isNaN(num):
return num != num