Skip to content

Commit cb008a0

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

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

doc/source/whatsnew/v0.20.0.txt

+1
Original file line numberDiff line numberDiff line change
@@ -393,6 +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+
highlight_max()
396397
apply(lambda s: ['background-color: yellow' if v else ''
397398
for v in s == s.max()])
398399
styled.to_excel('styled.xlsx', engine='openpyxl')

0 commit comments

Comments
 (0)