Python Replace Nan In Numpy Which Function