code: def is_unique(self):
          
          if self._is_unique is None:
              t = self.values[:-1] == self.values[1:]  # type: np.ndarray
              self._is_unique = ~np.any(t)
          return self._is_unique
docs: True if no duplicate entries.