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 1c9a763 commit e4aaf68Copy full SHA for e4aaf68
pandas/core/util/hashing.py
@@ -6,7 +6,6 @@
6
7
import itertools
8
from typing import TYPE_CHECKING
9
-import warnings
10
11
import numpy as np
12
@@ -335,15 +334,9 @@ def _hash_ndarray(
335
334
vals = hash_object_array(vals, hash_key, encoding)
336
except TypeError:
337
# we have mixed types
338
- with warnings.catch_warnings():
339
- warnings.filterwarnings(
340
- "ignore",
341
- "invalid value encountered in cast",
342
- RuntimeWarning,
343
- )
344
- vals = hash_object_array(
345
- vals.astype(str).astype(object), hash_key, encoding
346
+ vals = hash_object_array(
+ vals.astype(str).astype(object), hash_key, encoding
+ )
347
348
# Then, redistribute these 64-bit ints within the space of 64-bit ints
349
vals ^= vals >> 30
0 commit comments