Return True if either the real or the imaginary part of x is a NaN, and False otherwise.
cmath.isnan(x)