python - How can I check for NaN values? - Stack Overflow

PHOTO EMBED

Mon Jan 16 2023 04:04:05 GMT+0000 (Coordinated Universal Time)

Saved by @lahiruaruna

>>> import math
>>> x = float('nan')
>>> math.isnan(x)
True
content_copyCOPY

https://stackoverflow.com/questions/944700/how-can-i-check-for-nan-values