We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb51152 commit a46f838Copy full SHA for a46f838
pandas/core/util/hashing.py
@@ -324,8 +324,8 @@ def _hash_ndarray(
324
)
325
326
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]
+ tdtype = CategoricalDtype(categories=Index(categories), ordered=False)
+ cat = Categorical._simple_new(codes, tdtype)
329
return cat._hash_pandas_object(
330
encoding=encoding, hash_key=hash_key, categorize=False
331
0 commit comments