Numpy Replace Nan With Another Array In Math