Skip to content

Commit 8bacfdd

Browse files
committed
CLN: Cleanup toplevel namespace shims
Removes the following: * pandas.types * pandas.computation * pandas.util.decorators xref pandas-devgh-16157. xref pandas-devgh-16250.
1 parent da9d851 commit 8bacfdd

File tree

8 files changed

+1
-56
lines changed

8 files changed

+1
-56
lines changed

doc/source/whatsnew/v0.24.0.txt

+1
Original file line numberDiff line numberDiff line change
@@ -943,6 +943,7 @@ Removal of prior version deprecations/changes
943943
- Strings passed into :meth:`DataFrame.groupby` that refer to both column and index levels will raise a ``ValueError`` (:issue:`14432`)
944944
- :meth:`Index.repeat` and :meth:`MultiIndex.repeat` have renamed the ``n`` argument to ``repeats`` (:issue:`14645`)
945945
- Removal of the previously deprecated ``as_indexer`` keyword completely from ``str.match()`` (:issue:`22356`, :issue:`6581`)
946+
- The modules ``pandas.types``, ``pandas.computation``, and ``pandas.util.decorators`` have been removed (:issue:`16157`, :issue:`16250`)
946947
- Removed the ``pandas.formats.style`` shim for :class:`pandas.io.formats.style.Styler` (:issue:`16059`)
947948
- :meth:`Categorical.searchsorted` and :meth:`Series.searchsorted` have renamed the ``v`` argument to ``value`` (:issue:`14645`)
948949
- :meth:`TimedeltaIndex.searchsorted`, :meth:`DatetimeIndex.searchsorted`, and :meth:`PeriodIndex.searchsorted` have renamed the ``key`` argument to ``value`` (:issue:`14645`)

pandas/computation/__init__.py

Whitespace-only changes.

pandas/computation/expressions.py

-15
This file was deleted.

pandas/tests/api/test_api.py

-14
Original file line numberDiff line numberDiff line change
@@ -193,20 +193,6 @@ def test_deprecation_access_func(self):
193193
pd.tslib.Timestamp('20160101')
194194

195195

196-
class TestTypes(object):
197-
198-
def test_deprecation_access_func(self):
199-
with tm.assert_produces_warning(
200-
FutureWarning, check_stacklevel=False):
201-
from pandas.types.concat import union_categoricals
202-
c1 = pd.Categorical(list('aabc'))
203-
c2 = pd.Categorical(list('abcd'))
204-
union_categoricals(
205-
[c1, c2],
206-
sort_categories=True,
207-
ignore_order=True)
208-
209-
210196
class TestCDateRange(object):
211197

212198
def test_deprecation_cdaterange(self):

pandas/types/__init__.py

Whitespace-only changes.

pandas/types/common.py

-8
This file was deleted.

pandas/types/concat.py

-11
This file was deleted.

pandas/util/decorators.py

-8
This file was deleted.

0 commit comments

Comments
 (0)