Skip to content

Commit 934df06

Browse files
committed
Display df, not styled
I had misunderstood the intention of the reviewer.
1 parent 6465913 commit 934df06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/source/whatsnew/v0.20.0.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -416,11 +416,11 @@ For example, after running the following, ``styled.xlsx`` renders as below:
416416
columns=list('BCDE'))],
417417
axis=1)
418418
df.iloc[0, 2] = np.nan
419+
df
419420
styled = df.style.\
420421
applymap(lambda val: 'color: %s' % 'red' if val < 0 else 'black').\
421422
apply(lambda s: ['background-color: yellow' if v else ''
422423
for v in s == s.max()])
423-
styled
424424
styled.to_excel('styled.xlsx', engine='openpyxl')
425425

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

0 commit comments

Comments
 (0)