Skip to content

Commit c1a83ee

Browse files
gfyoungPingviinituutti
authored andcommitted
CLN: Cleanup toplevel namespace shims (pandas-dev#23386)
Removes the following: * pandas.types * pandas.computation * pandas.util.decorators xref pandas-devgh-16157. xref pandas-devgh-16250.
1 parent 91fd469 commit c1a83ee

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
@@ -944,6 +944,7 @@ Removal of prior version deprecations/changes
944944
- :meth:`Index.repeat` and :meth:`MultiIndex.repeat` have renamed the ``n`` argument to ``repeats`` (:issue:`14645`)
945945
- The ``Series`` constructor and ``.astype`` method will now raise a ``ValueError`` if timestamp dtypes are passed in without a frequency (e.g. ``np.datetime64``) for the ``dtype`` parameter (:issue:`15987`)
946946
- Removal of the previously deprecated ``as_indexer`` keyword completely from ``str.match()`` (:issue:`22356`, :issue:`6581`)
947+
- The modules ``pandas.types``, ``pandas.computation``, and ``pandas.util.decorators`` have been removed (:issue:`16157`, :issue:`16250`)
947948
- Removed the ``pandas.formats.style`` shim for :class:`pandas.io.formats.style.Styler` (:issue:`16059`)
948949
- :func:`pandas.pnow`, :func:`pandas.match`, :func:`pandas.groupby`, :func:`pd.get_store`, ``pd.Expr``, and ``pd.Term`` have been removed (:issue:`15538`, :issue:`15940`)
949950
- :meth:`Categorical.searchsorted` and :meth:`Series.searchsorted` have renamed the ``v`` 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
@@ -135,20 +135,6 @@ def test_TimeGrouper(self):
135135
pd.TimeGrouper(freq='D')
136136

137137

138-
class TestTypes(object):
139-
140-
def test_deprecation_access_func(self):
141-
with tm.assert_produces_warning(
142-
FutureWarning, check_stacklevel=False):
143-
from pandas.types.concat import union_categoricals
144-
c1 = pd.Categorical(list('aabc'))
145-
c2 = pd.Categorical(list('abcd'))
146-
union_categoricals(
147-
[c1, c2],
148-
sort_categories=True,
149-
ignore_order=True)
150-
151-
152138
class TestCDateRange(object):
153139

154140
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)