Question: what does np.nan do in python?
Answer: NumPy uses the IEEE Standard for Binary Floating-Point for Arithmetic (IEEE 754). This means that Not a Number is not equivalent to infinity. NaN and NAN are aliases of nan . A convenient alias for None, useful for indexing arrays.