We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2eb667 commit 00feea4Copy full SHA for 00feea4
pandas/_libs/index.pyx
@@ -321,6 +321,9 @@ cdef class IndexEngine:
321
if is_strict_monotonic:
322
self.unique = 1
323
self.need_unique_check = 0
324
+ elif self.monotonic_inc == 1 or self.monotonic_dec == 1:
325
+ self.unique = 0
326
+ self.need_unique_check = 0
327
328
cdef _call_monotonic(self, values):
329
return algos.is_monotonic(values, timelike=False)
0 commit comments