Skip to content

Commit bbddb68

Browse files
committed
DOC: Simplify excel style example
1 parent b8c0ed3 commit bbddb68

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

doc/source/whatsnew/v0.20.0.txt

+1-2
Original file line numberDiff line numberDiff line change
@@ -393,8 +393,7 @@ For example, after running the following, ``styled.xlsx`` renders as below:
393393
df
394394
styled = df.style.\
395395
applymap(lambda val: 'color: %s' % 'red' if val < 0 else 'black').\
396-
apply(lambda s: ['background-color: yellow' if v else ''
397-
for v in s == s.max()])
396+
highlight_max()
398397
styled.to_excel('styled.xlsx', engine='openpyxl')
399398

400399
.. image:: _static/style-excel.png

0 commit comments

Comments
 (0)