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 Articleusing 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
More Pages to Explore .....