def _get_fill_value(dtype, fill_value=None, fill_value_typ=None):
 if (fill_value is not None):
  return fill_value
 if _na_ok_dtype(dtype):
  if (fill_value_typ is None):
   return np.nan
  elif (fill_value_typ == '+inf'):
   return np.inf
  else:
   return (- np.inf)
 elif (fill_value_typ is None):
  return tslib.iNaT
 elif (fill_value_typ == '+inf'):
  return _int64_max
 else:
  return tslib.iNaT

def _get_fill_value ( dtype , fill_value = None , fill_value_typ = None ) : if ( fill_value is not None ) : return fill_value if _na_ok_dtype ( dtype ) : if ( fill_value_typ is None ) : return np . nan elif ( fill_value_typ == '+inf' ) : return np . inf else : return ( - np . inf ) elif ( fill_value_typ is None ) : return tslib . iNaT elif ( fill_value_typ == '+inf' ) : return _int64_max else : return tslib . iNaT
return the correct fill value for the dtype of the values .