Contact: aviboots(AT)netvision.net.il
41,606 questions
54,269 answers
573 users
import math import numpy as np b = math.nan print(np.isnan(b)) ''' run: True '''
import numpy as np arr = np.array([4, 9, np.NaN, 3]) print(np.isnan(arr)) ''' run: [False False True False] '''
import math def isNaN(b): return b != b b = math.nan print(isNaN(b)) ''' run: True '''