Numpy Cannot Convert Float Nan To Integer