Skip to content

DOC: release notes for 1.3.0 Styler #40637

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

Merged
merged 5 commits into from
Apr 2, 2021
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions doc/source/whatsnew/v1.3.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,30 @@ both XPath 1.0 and XSLT 1.0 is available. (:issue:`27554`)

For more, see :ref:`io.xml` in the user guide on IO tools.

Styler Upgrades
^^^^^^^^^^^^^^^

We provided some focused development on :class:`.Styler`, including altering methods
to accept more universal CSS language for arguments, such as ``'color:red;'`` instead of
``[('color', 'red')]``. This is also added to the built-in methods to allow custom CSS
highlighting instead of default background coloring.

The :meth:`.Styler.apply` now consistently allows functions with ``ndarray`` output to
allow more flexible development of UDFs when ``axis`` is ``None`` ``0`` or ``1``.

:meth:`.Styler.set_tooltips` is a new method that allows adding on hover tooltips to
enhance interactive displays. :meth:`.Styler.set_td_classes`, which was recently
introduced in v1.2.0 to allow adding specific CSS classes to data cells, has
been made as performant as :meth:`.Styler.apply` and :meth:`.Styler.applymap`,
if not more performant in some
cases. The overall performance of HTML render times has been considerably improved to
match :meth:`DataFrame.to_html`.

The :meth:`.Styler.format` has also had upgrades to easily format missing data,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure this is fine. pls indicate the releavant issues / PR number as appropriate

precision, and perform HTML escaping. There have been numerous other bug fixes to
properly format HTML and eliminate some inconsistencies.


.. _whatsnew_130.enhancements.other:

Other enhancements
Expand Down