parameters: (self)
docstring: return if the index is monotonic increasing (only equal or
          increasing) values.
docstring_summary: return if the index is monotonic increasing (only equal or
          increasing) values.
docstring_tokens: return if the index is monotonic increasing ( only equal or increasing ) values .
function: def is_monotonic_increasing(self) -> bool:
          """
          return if the index is monotonic increasing (only equal or
          increasing) values.
          """
          if any(-1 in code for code in self.codes):
              return False
  
          if all(level.is_monotonic for level in self.levels):
              # If each level is sorted, we can operate on the codes directly. GH27495
              return libalgos.is_lexsorted(
                  [x.astype("int64", copy=False) for x in self.codes]
              )
  
          # reversed() because lexsort() wants the most significant key last.
          values = [
              self._get_level_values(i)._values for i in reversed(range(len(self.levels)))
          ]
          try:
              sort_order = np.lexsort(values)
              return Index(sort_order).is_monotonic
          except TypeError:
  
              # we have mixed types and np.lexsort is not happy
              return Index(self._values).is_monotonic
function_tokens: def is_monotonic_increasing ( self ) -> bool : if any ( - 1 in code for code in self . codes ) : return False if all ( level . is_monotonic for level in self . levels ) : # If each level is sorted, we can operate on the codes directly. GH27495 return libalgos . is_lexsorted ( [ x . astype ( "int64" , copy = False ) for x in self . codes ] ) # reversed() because lexsort() wants the most significant key last. values = [ self . _get_level_values ( i ) . _values for i in reversed ( range ( len ( self . levels ) ) ) ] try : sort_order = np . lexsort ( values ) return Index ( sort_order ) . is_monotonic except TypeError : # we have mixed types and np.lexsort is not happy return Index ( self . _values ) . is_monotonic