Replace Nan In Array Python Methods With Parameters