code: def _maybe_mask_results(self, result, fill_value=iNaT, convert=None):
          
  
          if self._hasnans:
              if convert:
                  result = result.astype(convert)
              if fill_value is None:
                  fill_value = np.nan
              result[self._isnan] = fill_value
          return result
docs: Parameters
          ----------
          result : a ndarray
          fill_value : object, default iNaT
          convert : string/dtype or None
  
          Returns
          -------
          result : ndarray with values replace by the fill_value
  
          mask the result if needed, convert to the provided dtype if its not
          None
  
          This is an internal routine.