Numpy Has No Attribute Nan