Skip to content

Commit 1a438a3

Browse files
committed
adjust for that is_monotonic uses fused types
1 parent c9f1166 commit 1a438a3

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

pandas/_libs/algos.pyx

+5-1
Original file line numberDiff line numberDiff line change
@@ -361,9 +361,13 @@ ctypedef fused algos_t:
361361
float64_t
362362
float32_t
363363
object
364-
int32_t
365364
int64_t
365+
int32_t
366+
int16_t
367+
int8_t
366368
uint64_t
369+
uint32_t
370+
uint16_t
367371
uint8_t
368372

369373

pandas/_libs/index_class_helper.pxi.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ cdef class {{name}}Engine(IndexEngine):
3333
_dtype = '{{dtype}}'
3434

3535
def _call_monotonic(self, values):
36-
return algos.is_monotonic_{{dtype}}(values, timelike=False)
36+
return algos.is_monotonic(values, timelike=False)
3737

3838
def get_backfill_indexer(self, other, limit=None):
3939
return algos.backfill_{{dtype}}(self._get_index_values(),

0 commit comments

Comments
 (0)