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