We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b835127 commit f30345fCopy full SHA for f30345f
pandas/io/pickle.py
@@ -1,4 +1,5 @@
1
""" pickle compat """
2
+import warnings
3
4
import numpy as np
5
from numpy.lib.format import read_array, write_array
@@ -96,7 +97,9 @@ def try_read(path, encoding=None):
96
97
# cpickle
98
# GH 6899
99
try:
- return read_wrapper(lambda f: pkl.load(f))
100
+ with warnings.catch_warnings(record=True):
101
+ # We want to silencce any warnings about, e.g. moved modules.
102
+ return read_wrapper(lambda f: pkl.load(f))
103
except Exception:
104
# reg/patched pickle
105
0 commit comments