Skip to content

Commit 3a4c2bc

Browse files
committed
removing not really needed default_na_value
1 parent 17a3fee commit 3a4c2bc

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

pandas/_libs/hashtable_class_helper.pxi.in

+13-13
Original file line numberDiff line numberDiff line change
@@ -303,22 +303,22 @@ cdef class HashTable:
303303

304304
{{py:
305305

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)]
317317

318318
}}
319319

320320

321-
{{for name, dtype, float_group, default_na_value in dtypes}}
321+
{{for name, dtype, float_group in dtypes}}
322322

323323
cdef class {{name}}HashTable(HashTable):
324324

@@ -487,7 +487,7 @@ cdef class {{name}}HashTable(HashTable):
487487
# which is only used if it's *specified*.
488488
na_value2 = <{{dtype}}_t>na_value
489489
else:
490-
na_value2 = {{default_na_value}}
490+
na_value2 = 0
491491

492492
with nogil:
493493
for i in range(n):

0 commit comments

Comments
 (0)