Check If Array Has Nan Python