Skip to content

Commit 2b4499f

Browse files
committed
Fix docstring, use checknull, closes pandas-dev#32206
1 parent e18921e commit 2b4499f

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

pandas/_libs/hashtable_class_helper.pxi.in

+1-3
Original file line numberDiff line numberDiff line change
@@ -1228,9 +1228,7 @@ cdef class PyObjectHashTable(HashTable):
12281228
hash(val)
12291229

12301230
if ignore_na and (
1231-
(val is C_NA)
1232-
or (val != val)
1233-
or (val is None)
1231+
checknull(val)
12341232
or (use_na_value and val == na_value)
12351233
):
12361234
# if missing values do not count as unique values (i.e. if

pandas/core/construction.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -388,10 +388,9 @@ def extract_array(
388388
----------
389389
obj : object
390390
For Series / Index, the underlying ExtensionArray is unboxed.
391-
For Numpy-backed ExtensionArrays, the ndarray is extracted.
392391
393392
extract_numpy : bool, default False
394-
Whether to extract the ndarray from a PandasArray
393+
Whether to extract the ndarray from a PandasArray.
395394
396395
extract_range : bool, default False
397396
If we have a RangeIndex, return range._values if True

0 commit comments

Comments
 (0)