diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 9a4747f40b86d..66b6923ef13e4 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -571,6 +571,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`) +- 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`) diff --git a/pandas/formats/__init__.py b/pandas/formats/__init__.py deleted file mode 100644 index e69de29bb2d1d..0000000000000 diff --git a/pandas/formats/style.py b/pandas/formats/style.py deleted file mode 100644 index ec4b4a2cde0c5..0000000000000 --- a/pandas/formats/style.py +++ /dev/null @@ -1,7 +0,0 @@ -import warnings - -warnings.warn("Styler has been moved from pandas.formats.style.Styler" - " to pandas.io.formats.style.Styler. This shim will be" - " removed in pandas 0.21", - FutureWarning) -from pandas.io.formats.style import Styler # noqa diff --git a/pandas/tests/io/formats/test_style.py b/pandas/tests/io/formats/test_style.py index 5254ccc742ab8..e407573c9a462 100644 --- a/pandas/tests/io/formats/test_style.py +++ b/pandas/tests/io/formats/test_style.py @@ -1269,11 +1269,3 @@ def test_from_custom_template(tmpdir): assert result.template is not Styler.template styler = result(pd.DataFrame({"A": [1, 2]})) assert styler.render() - - -def test_shim(): - # https://github.com/pandas-dev/pandas/pull/16059 - # Remove in 0.21 - with tm.assert_produces_warning(FutureWarning, - check_stacklevel=False): - from pandas.formats.style import Styler as _styler # noqa