Como verificar se um valor de string é nan em python

if(term != term):
	print("it's a nan value")
the other guy