Check for NaN values in Python The Problem I sometimes see the value NaN (Not a Number) when working with floats in Python.