@@ -21,7 +21,6 @@ dtypes = [('Float64', 'float64', 'float64_t', 'Float64', 'float64'),
21
21
('UInt32', 'uint32', 'uint32_t', 'UInt64', 'uint64'),
22
22
('UInt16', 'uint16', 'uint16_t', 'UInt64', 'uint64'),
23
23
('UInt8', 'uint8', 'uint8_t', 'UInt64', 'uint64'),
24
- ('Object', 'object', 'object', 'PyObject', 'object'),
25
24
]
26
25
}}
27
26
@@ -30,30 +29,15 @@ dtypes = [('Float64', 'float64', 'float64_t', 'Float64', 'float64'),
30
29
31
30
cdef class {{name}}Engine(IndexEngine):
32
31
33
- def _call_monotonic(self, values):
34
- return algos.is_monotonic(values, timelike=False)
35
-
36
- def get_backfill_indexer(self, other, limit=None):
37
- return algos.backfill(self._get_index_values(), other, limit=limit)
38
-
39
- def get_pad_indexer(self, other, limit=None):
40
- return algos.pad(self._get_index_values(), other, limit=limit)
41
-
42
32
cdef _make_hash_table(self, n):
43
33
return _hash.{{hashtable_name}}HashTable(n)
44
34
45
- {{if name not in {'Float64', 'Float32', 'Object' } }}
35
+ {{if name not in {'Float64', 'Float32'} }}
46
36
cdef _check_type(self, object val):
47
- hash(val)
48
- if util.is_bool_object(val):
49
- raise KeyError(val)
50
- elif util.is_float_object(val):
51
- raise KeyError(val)
52
- elif not util.is_integer_object(val):
37
+ if not util.is_integer_object(val):
53
38
raise KeyError(val)
54
39
{{endif}}
55
40
56
- {{if name != 'Object'}}
57
41
cpdef _call_map_locations(self, values):
58
42
# self.mapping is of type {{hashtable_name}}HashTable,
59
43
# so convert dtype of values
@@ -87,6 +71,4 @@ cdef class {{name}}Engine(IndexEngine):
87
71
88
72
raise KeyError(val)
89
73
90
- {{endif}}
91
-
92
74
{{endfor}}
0 commit comments