code: def _validate_monotonic(self):
          
          if not self._on.is_monotonic:
              formatted = self.on or 'index'
              raise ValueError("{0} must be "
                               "monotonic".format(formatted))
docs: Validate on is_monotonic.