Skip to content

Commit 77a8f2f

Browse files
DEPR: correct locations to access public json objects in depr message
1 parent 1fbdc23 commit 77a8f2f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pandas/__init__.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@
6060
# extension module deprecations
6161
from pandas.util.depr_module import _DeprecatedModule
6262

63-
json = _DeprecatedModule(deprmod='pandas.json', deprmodto='pandas.io.json.libjson')
63+
json = _DeprecatedModule(deprmod='pandas.json', deprmodto='pandas.io.json.libjson',
64+
moved={'dumps': 'pandas.io.json.dumps',
65+
'loads': 'pandas.io.json.loads'})
6466
parser = _DeprecatedModule(deprmod='pandas.parser', deprmodto='pandas.io.libparsers')
6567
lib = _DeprecatedModule(deprmod='pandas.lib', deprmodto='pandas._libs.lib',
6668
moved={'infer_dtype': 'pandas.api.lib.infer_dtype'})

0 commit comments

Comments
 (0)