Skip to content

Commit d1a953b

Browse files
Daniel SaxtonDaniel Saxton
Daniel Saxton
authored and
Daniel Saxton
committed
Align conditions
1 parent 7da4e44 commit d1a953b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

pandas/_libs/hashtable_class_helper.pxi.in

+6-3
Original file line numberDiff line numberDiff line change
@@ -1033,9 +1033,12 @@ cdef class PyObjectHashTable(HashTable):
10331033
val = values[i]
10341034
hash(val)
10351035

1036-
if ignore_na and ((val is C_NA)
1037-
or (val != val or val is None)
1038-
or (use_na_value and val == na_value)):
1036+
if ignore_na and (
1037+
(val is C_NA)
1038+
or (val != val)
1039+
or (val is None)
1040+
or (use_na_value and val == na_value)
1041+
):
10391042
# if missing values do not count as unique values (i.e. if
10401043
# ignore_na is True), skip the hashtable entry for them, and
10411044
# replace the corresponding label with na_sentinel

0 commit comments

Comments
 (0)