Skip to content

Commit

Permalink
DEPR: Styler.set_na_rep and .set_precision in favour of `.format(…
Browse files Browse the repository at this point in the history
…na_rep='x', precision=3)` (#40134)
  • Loading branch information
attack68 committed Mar 5, 2021
1 parent 2a6fff3 commit 154026c
Show file tree
Hide file tree
Showing 4 changed files with 195 additions and 114 deletions.
2 changes: 0 additions & 2 deletions doc/source/reference/style.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ Style application
Styler.applymap
Styler.where
Styler.format
Styler.set_precision
Styler.set_td_classes
Styler.set_table_styles
Styler.set_table_attributes
Expand All @@ -44,7 +43,6 @@ Style application
Styler.set_caption
Styler.set_properties
Styler.set_uuid
Styler.set_na_rep
Styler.clear
Styler.pipe

Expand Down
1 change: 1 addition & 0 deletions doc/source/whatsnew/v1.3.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ Deprecations
- Deprecated :meth:`core.window.ewm.ExponentialMovingWindow.vol` (:issue:`39220`)
- Using ``.astype`` to convert between ``datetime64[ns]`` dtype and :class:`DatetimeTZDtype` is deprecated and will raise in a future version, use ``obj.tz_localize`` or ``obj.dt.tz_localize`` instead (:issue:`38622`)
- Deprecated casting ``datetime.date`` objects to ``datetime64`` when used as ``fill_value`` in :meth:`DataFrame.unstack`, :meth:`DataFrame.shift`, :meth:`Series.shift`, and :meth:`DataFrame.reindex`, pass ``pd.Timestamp(dateobj)`` instead (:issue:`39767`)
- Deprecated :meth:`.Styler.set_na_rep` and :meth:`.Styler.set_precision` in favour of :meth:`.Styler.format` with ``na_rep`` and ``precision`` as existing and new input arguments respectively (:issue:`40134`)
- Deprecated allowing partial failure in :meth:`Series.transform` and :meth:`DataFrame.transform` when ``func`` is list-like or dict-like; will raise if any function fails on a column in a future version (:issue:`40211`)

.. ---------------------------------------------------------------------------
Expand Down
Loading

0 comments on commit 154026c

Please sign in to comment.