code: def interp_like(self, other, method='linear', assume_sorted=False,
                      kwargs={}):
          if self.dtype.kind not in 'uifc':
              raise TypeError('interp only works for a numeric type array. '
                              'Given {}.'.format(self.dtype))
          ds = self._to_temp_dataset().interp_like(
              other, method=method, kwargs=kwargs, assume_sorted=assume_sorted)
          return self._from_temp_dataset(ds)