if (not start or not end) and self._series.empty:
            raise ValueError('cannot determine the gaps from empty series '