Skip to content

Commit a46f838

Browse files
Alvaro-KotheDr-Irv
andauthored
Update pandas/core/util/hashing.py
Co-authored-by: Irv Lustig <[email protected]>
1 parent eb51152 commit a46f838

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/util/hashing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,8 +324,8 @@ def _hash_ndarray(
324324
)
325325

326326
codes, categories = factorize(vals, sort=False)
327-
dtype = CategoricalDtype(categories=Index(categories), ordered=False) # type: ignore[assignment]
328-
cat = Categorical._simple_new(codes, dtype) # type: ignore[arg-type]
327+
tdtype = CategoricalDtype(categories=Index(categories), ordered=False)
328+
cat = Categorical._simple_new(codes, tdtype)
329329
return cat._hash_pandas_object(
330330
encoding=encoding, hash_key=hash_key, categorize=False
331331
)

0 commit comments

Comments
 (0)