def _is_na_compat(arr, fill_value=np.nan):
 dtype = arr.dtype
 if isnull(fill_value):
  return (not (is_bool_dtype(dtype) or is_integer_dtype(dtype)))
 return True

def _is_na_compat ( arr , fill_value = np . nan ) : dtype = arr . dtype if isnull ( fill_value ) : return ( not ( is_bool_dtype ( dtype ) or is_integer_dtype ( dtype ) ) ) return True
parameters arr: a numpy array fill_value: fill value .