@@ -303,22 +303,22 @@ cdef class HashTable:
303
303
304
304
{{py:
305
305
306
- # name, dtype, float_group, default_na_value
307
- dtypes = [('Float64', 'float64', True, 'np.nan' ),
308
- ('UInt64', 'uint64', False, 0 ),
309
- ('Int64', 'int64', False, 'NPY_NAT' ),
310
- ('Float32', 'float32', True, 'np.nan' ),
311
- ('UInt32', 'uint32', False, 0 ),
312
- ('Int32', 'int32', False, 0 ),
313
- ('UInt16', 'uint16', False, 0 ),
314
- ('Int16', 'int16', False, 0 ),
315
- ('UInt8', 'uint8', False, 0 ),
316
- ('Int8', 'int8', False, 0 )]
306
+ # name, dtype, float_group
307
+ dtypes = [('Float64', 'float64', True),
308
+ ('UInt64', 'uint64', False),
309
+ ('Int64', 'int64', False),
310
+ ('Float32', 'float32', True),
311
+ ('UInt32', 'uint32', False),
312
+ ('Int32', 'int32', False),
313
+ ('UInt16', 'uint16', False),
314
+ ('Int16', 'int16', False),
315
+ ('UInt8', 'uint8', False),
316
+ ('Int8', 'int8', False)]
317
317
318
318
}}
319
319
320
320
321
- {{for name, dtype, float_group, default_na_value in dtypes}}
321
+ {{for name, dtype, float_group in dtypes}}
322
322
323
323
cdef class {{name}}HashTable(HashTable):
324
324
@@ -487,7 +487,7 @@ cdef class {{name}}HashTable(HashTable):
487
487
# which is only used if it's *specified*.
488
488
na_value2 = <{{dtype}}_t>na_value
489
489
else:
490
- na_value2 = {{default_na_value}}
490
+ na_value2 = 0
491
491
492
492
with nogil:
493
493
for i in range(n):
0 commit comments