Replace Nan In Array Python Definition