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

DOC: Updated release notes for 0.20.1 #16251

Merged
merged 3 commits into from
May 5, 2017
Merged
Show file tree
Hide file tree
Changes from all 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
10 changes: 7 additions & 3 deletions doc/source/whatsnew/v0.20.0.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.. _whatsnew_0200:

v0.20.0 (May 4, 2017)
v0.20.1 (May 5, 2017)
---------------------

This is a major release from 0.19.2 and includes a number of API changes, deprecations, new features,
Expand Down Expand Up @@ -30,6 +30,11 @@ Highlights include:

Check the :ref:`API Changes <whatsnew_0200.api_breaking>` and :ref:`deprecations <whatsnew_0200.deprecations>` before updating.

.. note::

This is a combined release for 0.20.0 and and 0.20.1.
Version 0.20.1 contains one additional change for backwards-compatibility with downstream projects using pandas' ``utils`` routines. (:issue:`16250`)

.. contents:: What's new in v0.20.0
:local:
:backlinks: none
Expand Down Expand Up @@ -388,8 +393,7 @@ For example, after running the following, ``styled.xlsx`` renders as below:
df
styled = df.style.\
applymap(lambda val: 'color: %s' % 'red' if val < 0 else 'black').\
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you have a cleaner way of doing this?

Copy link
Member

Choose a reason for hiding this comment

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

I don't think we have a built-in fucntion for negative values (only for max, min or null)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think this is the best we have right now. A .where would be nice... I'll make a new issue :)

apply(lambda s: ['background-color: yellow' if v else ''
for v in s == s.max()])
highlight_max()
styled.to_excel('styled.xlsx', engine='openpyxl')

.. image:: _static/style-excel.png
Expand Down
File renamed without changes.