def is_monotonic(self): try: return self.index.is_monotonic except: return lib.is_monotonic_int64(self.values)[0]
def is_monotonic(self): return lib.is_monotonic_int64(self)