Quantcast
Channel: using float('nan') to represent missing values - safe? - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by MSN for using float('nan') to represent missing values - safe?

It's safe-ish, but if the FPU ever has to touch x it can be insanely slow (as some hardware treats NaN as a special case): Is it a good idea to use IEEE754 floating point NaN for values which are not set?

View Article



using float('nan') to represent missing values - safe?

Python 3.1I am doing some calculations on a data that has missing values. Any calculation that involves a missing value should result in a missing value.I am thinking of using float('nan') to represent...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images