Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEPR: Styler.set_na_rep and .set_precision in favour of .format(na_rep='x', precision=3) #40134

Merged
merged 43 commits into from
Mar 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
971fb40
bug: formatter overwrites na_rep
attack68 Feb 25, 2021
6f573ee
bug: formatter overwrites na_rep
attack68 Feb 25, 2021
f50f894
bug: formatter overwrites na_rep
attack68 Feb 25, 2021
47c4021
bug: formatter overwrites na_rep
attack68 Feb 25, 2021
7371e44
bug: formatter overwrites na_rep
attack68 Feb 25, 2021
82474b1
group tests
attack68 Feb 25, 2021
9a9a39b
revert small chg
attack68 Feb 25, 2021
f72b335
docs
attack68 Feb 25, 2021
0792393
test
attack68 Feb 25, 2021
7bb1171
mypy
attack68 Feb 25, 2021
0d67562
mypy
attack68 Feb 25, 2021
384916d
easy compare
attack68 Feb 25, 2021
76a44ae
easy compare
attack68 Feb 25, 2021
e3d4daf
easy compare
attack68 Feb 25, 2021
63532af
Merge remote-tracking branch 'upstream/master' into fix_formatter_na_rep
attack68 Feb 27, 2021
7bc66eb
deprecate set_na_rep() and set_precision() in favour of format()
attack68 Feb 28, 2021
518405c
edit
attack68 Feb 28, 2021
f3b38ae
edit
attack68 Feb 28, 2021
ae88c55
edit
attack68 Feb 28, 2021
859125f
edit
attack68 Feb 28, 2021
c34083e
docs
attack68 Feb 28, 2021
60a25ff
docs
attack68 Feb 28, 2021
7a64724
same var names
attack68 Mar 1, 2021
4c68cc9
same var names
attack68 Mar 1, 2021
c385a62
same var names
attack68 Mar 1, 2021
61e367a
doc examples
attack68 Mar 1, 2021
c664118
Merge remote-tracking branch 'upstream/master' into depr_format_na_rep
attack68 Mar 1, 2021
a880754
doc examples
attack68 Mar 1, 2021
ed5b13a
typing
attack68 Mar 1, 2021
27fb8d5
typing
attack68 Mar 1, 2021
88fc84d
Merge remote-tracking branch 'upstream/master' into depr_format_na_rep
attack68 Mar 2, 2021
bf7f9fc
req changes
attack68 Mar 3, 2021
892df77
req changes
attack68 Mar 3, 2021
b63220b
tests
attack68 Mar 3, 2021
fbe8bb2
whats new
attack68 Mar 3, 2021
302924c
req changes
attack68 Mar 4, 2021
43b8fa7
test clear
attack68 Mar 4, 2021
672f42c
Merge remote-tracking branch 'upstream/master' into depr_format_na_rep
attack68 Mar 5, 2021
482506c
Merge branch 'master' into depr_format_na_rep
jreback Mar 5, 2021
2c7d647
Update doc/source/whatsnew/v1.3.0.rst
attack68 Mar 5, 2021
aa51fe0
Update pandas/io/formats/style.py
attack68 Mar 5, 2021
d26d761
Update pandas/io/formats/style.py
attack68 Mar 5, 2021
94370d8
format docstring
attack68 Mar 5, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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 @@ -363,6 +363,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