Why NumPy NaN/Inf slows pandas DataFrame calculationsFixing Why NumPy NaN/Inf slows pandas DataFrame calculations in Python.