Skip to content

Commit

Permalink
CLN: Removes module pandas.json (pandas-dev#22737)
Browse files Browse the repository at this point in the history
  • Loading branch information
vitoriahmc authored and victor committed Sep 30, 2018
1 parent 74c8ffd commit 9dd6c12
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 18 deletions.
1 change: 1 addition & 0 deletions doc/source/whatsnew/v0.24.0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,7 @@ Removal of prior version deprecations/changes
- Removed the ``pandas.formats.style`` shim for :class:`pandas.io.formats.style.Styler` (:issue:`16059`)
- :meth:`Categorical.searchsorted` and :meth:`Series.searchsorted` have renamed the ``v`` argument to ``value`` (:issue:`14645`)
- :meth:`TimedeltaIndex.searchsorted`, :meth:`DatetimeIndex.searchsorted`, and :meth:`PeriodIndex.searchsorted` have renamed the ``key`` argument to ``value`` (:issue:`14645`)
- Removal of the previously deprecated module ``pandas.json`` (:issue:`19944`)

.. _whatsnew_0240.performance:

Expand Down
3 changes: 0 additions & 3 deletions pandas/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@
# extension module deprecations
from pandas.util._depr_module import _DeprecatedModule

json = _DeprecatedModule(deprmod='pandas.json',
moved={'dumps': 'pandas.io.json.dumps',
'loads': 'pandas.io.json.loads'})
parser = _DeprecatedModule(deprmod='pandas.parser',
removals=['na_values'],
moved={'CParserError': 'pandas.errors.ParserError'})
Expand Down
7 changes: 0 additions & 7 deletions pandas/json.py

This file was deleted.

9 changes: 1 addition & 8 deletions pandas/tests/api/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class TestPDApi(Base):
'util', 'options', 'io']

# these are already deprecated; awaiting removal
deprecated_modules = ['parser', 'json', 'lib', 'tslib']
deprecated_modules = ['parser', 'lib', 'tslib']

# misc
misc = ['IndexSlice', 'NaT']
Expand Down Expand Up @@ -173,13 +173,6 @@ def test_get_store(self):
s.close()


class TestJson(object):

def test_deprecation_access_func(self):
with catch_warnings(record=True):
pd.json.dumps([])


class TestParser(object):

def test_deprecation_access_func(self):
Expand Down

0 comments on commit 9dd6c12

Please sign in to comment.