Skip to content

Commit 71852da

Browse files
DEPR: Removed styler shim (#22691)
* DEPR: Removed styler shim * sphinx
1 parent ba2720b commit 71852da

File tree

4 files changed

+1
-15
lines changed

4 files changed

+1
-15
lines changed

doc/source/whatsnew/v0.24.0.txt

+1
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,7 @@ Removal of prior version deprecations/changes
571571
- Strings passed into :meth:`DataFrame.groupby` that refer to both column and index levels will raise a ``ValueError`` (:issue:`14432`)
572572
- :meth:`Index.repeat` and :meth:`MultiIndex.repeat` have renamed the ``n`` argument to ``repeats`` (:issue:`14645`)
573573
- Removal of the previously deprecated ``as_indexer`` keyword completely from ``str.match()`` (:issue:`22356`, :issue:`6581`)
574+
- Removed the ``pandas.formats.style`` shim for :class:`pandas.io.formats.style.Styler` (:issue:`16059`)
574575
- :meth:`Categorical.searchsorted` and :meth:`Series.searchsorted` have renamed the ``v`` argument to ``value`` (:issue:`14645`)
575576
- :meth:`TimedeltaIndex.searchsorted`, :meth:`DatetimeIndex.searchsorted`, and :meth:`PeriodIndex.searchsorted` have renamed the ``key`` argument to ``value`` (:issue:`14645`)
576577

pandas/formats/__init__.py

Whitespace-only changes.

pandas/formats/style.py

-7
This file was deleted.

pandas/tests/io/formats/test_style.py

-8
Original file line numberDiff line numberDiff line change
@@ -1269,11 +1269,3 @@ def test_from_custom_template(tmpdir):
12691269
assert result.template is not Styler.template
12701270
styler = result(pd.DataFrame({"A": [1, 2]}))
12711271
assert styler.render()
1272-
1273-
1274-
def test_shim():
1275-
# https://github.com/pandas-dev/pandas/pull/16059
1276-
# Remove in 0.21
1277-
with tm.assert_produces_warning(FutureWarning,
1278-
check_stacklevel=False):
1279-
from pandas.formats.style import Styler as _styler # noqa

0 commit comments

Comments
 (0)