Skip to content

Commit

Permalink
CLN: Cleanup toplevel namespace shims
Browse files Browse the repository at this point in the history
Removes the following:

* pandas.types
* pandas.computation
* pandas.util.decorators

xref pandas-devgh-16157.
xref pandas-devgh-16250.
  • Loading branch information
gfyoung committed Oct 27, 2018
1 parent da9d851 commit 8bacfdd
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 56 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 @@ -943,6 +943,7 @@ Removal of prior version deprecations/changes
- Strings passed into :meth:`DataFrame.groupby` that refer to both column and index levels will raise a ``ValueError`` (:issue:`14432`)
- :meth:`Index.repeat` and :meth:`MultiIndex.repeat` have renamed the ``n`` argument to ``repeats`` (:issue:`14645`)
- Removal of the previously deprecated ``as_indexer`` keyword completely from ``str.match()`` (:issue:`22356`, :issue:`6581`)
- The modules ``pandas.types``, ``pandas.computation``, and ``pandas.util.decorators`` have been removed (:issue:`16157`, :issue:`16250`)
- 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`)
Expand Down
Empty file removed pandas/computation/__init__.py
Empty file.
15 changes: 0 additions & 15 deletions pandas/computation/expressions.py

This file was deleted.

14 changes: 0 additions & 14 deletions pandas/tests/api/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,20 +193,6 @@ def test_deprecation_access_func(self):
pd.tslib.Timestamp('20160101')


class TestTypes(object):

def test_deprecation_access_func(self):
with tm.assert_produces_warning(
FutureWarning, check_stacklevel=False):
from pandas.types.concat import union_categoricals
c1 = pd.Categorical(list('aabc'))
c2 = pd.Categorical(list('abcd'))
union_categoricals(
[c1, c2],
sort_categories=True,
ignore_order=True)


class TestCDateRange(object):

def test_deprecation_cdaterange(self):
Expand Down
Empty file removed pandas/types/__init__.py
Empty file.
8 changes: 0 additions & 8 deletions pandas/types/common.py

This file was deleted.

11 changes: 0 additions & 11 deletions pandas/types/concat.py

This file was deleted.

8 changes: 0 additions & 8 deletions pandas/util/decorators.py

This file was deleted.

0 comments on commit 8bacfdd

Please sign in to comment.