-
Overview
To convert this question into english, maybe:
How to convert a DataFrame into a petty HTML table and send it over Email, like this one here.
From R1,there is a module named pretty_html_table .
-
pretty_html_table
The objective of this package is to convert a pandas dataframe into a pretty html table.
As of now, 10 colors are available.
-
其他方案
通过
df.to_html()
, 参见R3 -
延展问题:同时发送HTML和Plain格式的Email
R2提到,可以同时发送HTML和Plain,通过
msg=MIMEMultipart('alternative')
实现。使用此模块添加
html
tabl
将DataFrame作为邮件正文HTML发送 in Python
最新推荐文章于 2024-06-24 09:37:38 发布