Skip to content

Commit 9dd6c12

Browse files
vitoriahmcvictor
authored and
victor
committed
CLN: Removes module pandas.json (pandas-dev#22737)
1 parent 74c8ffd commit 9dd6c12

File tree

4 files changed

+2
-18
lines changed

4 files changed

+2
-18
lines changed

doc/source/whatsnew/v0.24.0.txt

+1
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,7 @@ Removal of prior version deprecations/changes
577577
- Removed the ``pandas.formats.style`` shim for :class:`pandas.io.formats.style.Styler` (:issue:`16059`)
578578
- :meth:`Categorical.searchsorted` and :meth:`Series.searchsorted` have renamed the ``v`` argument to ``value`` (:issue:`14645`)
579579
- :meth:`TimedeltaIndex.searchsorted`, :meth:`DatetimeIndex.searchsorted`, and :meth:`PeriodIndex.searchsorted` have renamed the ``key`` argument to ``value`` (:issue:`14645`)
580+
- Removal of the previously deprecated module ``pandas.json`` (:issue:`19944`)
580581

581582
.. _whatsnew_0240.performance:
582583

pandas/__init__.py

-3
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,6 @@
6161
# extension module deprecations
6262
from pandas.util._depr_module import _DeprecatedModule
6363

64-
json = _DeprecatedModule(deprmod='pandas.json',
65-
moved={'dumps': 'pandas.io.json.dumps',
66-
'loads': 'pandas.io.json.loads'})
6764
parser = _DeprecatedModule(deprmod='pandas.parser',
6865
removals=['na_values'],
6966
moved={'CParserError': 'pandas.errors.ParserError'})

pandas/json.py

-7
This file was deleted.

pandas/tests/api/test_api.py

+1-8
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class TestPDApi(Base):
3535
'util', 'options', 'io']
3636

3737
# these are already deprecated; awaiting removal
38-
deprecated_modules = ['parser', 'json', 'lib', 'tslib']
38+
deprecated_modules = ['parser', 'lib', 'tslib']
3939

4040
# misc
4141
misc = ['IndexSlice', 'NaT']
@@ -173,13 +173,6 @@ def test_get_store(self):
173173
s.close()
174174

175175

176-
class TestJson(object):
177-
178-
def test_deprecation_access_func(self):
179-
with catch_warnings(record=True):
180-
pd.json.dumps([])
181-
182-
183176
class TestParser(object):
184177

185178
def test_deprecation_access_func(self):

0 commit comments

Comments
 (0)