after render(), html border is lost

21 views
Skip to first unread message

James W.

unread,
Dec 16, 2016, 9:35:42 PM12/16/16
to PyData
Hi experts,

pd.set_option('display.width', 2000)
pd.set_option('html.border', 1)
df = pd.DataFrame(w)
html=df.style.applymap(color_negative_red).render()
df.name=case
f = open(case+".html", 'w')
print(df)
print(html)
f.write(html)
f.close()

to_html() looks pretty well, but I want to color some cells, so after render(), the border of table is lost.

I try add, ""pd.set_option('html.border', 1)"" but it doesn't work.


Would you give me some suggestion ?


James

John E

unread,
Dec 18, 2016, 7:16:53 PM12/18/16
to PyData
Might be better to ask the question here:


Reply all
Reply to author
Forward
0 new messages