File tree 1 file changed +14
-4
lines changed
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):
424
424
for i in range(n):
425
425
val = values[i]
426
426
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
+ ):
429
434
# if missing values do not count as unique values (i.e. if
430
435
# ignore_na is True), skip the hashtable entry for them,
431
436
# and replace the corresponding label with na_sentinel
@@ -1020,8 +1025,13 @@ cdef class PyObjectHashTable(HashTable):
1020
1025
val = values[i]
1021
1026
hash(val)
1022
1027
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}}):
1025
1035
# if missing values do not count as unique values (i.e. if
1026
1036
# ignore_na is True), skip the hashtable entry for them, and
1027
1037
# replace the corresponding label with na_sentinel
You can’t perform that action at this time.
0 commit comments