Source Code:
(back to article)
import math arr = [1, 2, float('nan'), 3, 4] for value in arr: if math.isnan(value): print('Found a NaN value')
Result:
Report an issue