test if is nan python code example
Example 1: python test is nan
math.isnan(n)
Example 2: how to check if a string value is nan in python
if(term != term):
print("it's a nan value")
math.isnan(n)
if(term != term):
print("it's a nan value")