File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -424,8 +424,13 @@ cdef class {{name}}HashTable(HashTable):
424424 for i in range(n):
425425 val = values[i]
426426
427- if ignore_na and (val != val
428- or (use_na_value and val == na_value2)):
427+ if ignore_na and (
428+ {{if name.lower().startswith(("uint", "int"))}}
429+ 0
430+ {{else}}
431+ val != val or (use_na_value and val == na_value2)
432+ {{endif}}
433+ ):
429434 # if missing values do not count as unique values (i.e. if
430435 # ignore_na is True), skip the hashtable entry for them,
431436 # and replace the corresponding label with na_sentinel
@@ -1020,8 +1025,13 @@ cdef class PyObjectHashTable(HashTable):
10201025 val = values[i]
10211026 hash(val)
10221027
1023- if ignore_na and ((val != val or val is None)
1024- or (use_na_value and val == na_value)):
1028+ if ignore_na and (
1029+ {{if name.lower().startswith(("uint", "int"))}}
1030+ 0
1031+ {{else}}
1032+ (val != val or val is None)
1033+ or (use_na_value and val == na_value)
1034+ {{endif}}):
10251035 # if missing values do not count as unique values (i.e. if
10261036 # ignore_na is True), skip the hashtable entry for them, and
10271037 # replace the corresponding label with na_sentinel
You can’t perform that action at this time.
0 commit comments