We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
我不知道您需要什么 - 图像PNG/JPG,图像SVG,文本表,HTML表。
但是首先,它需要读取数据并
在此列表中将其转换为这样的列表,它可以更简单地计算图像上文本或生成文本表或生成HTML的位置。
您可以使用
表
使用它来生成文本表您可以在
< pre></pre>
或< code>>/code>
最小的文本工作代码
编辑 中 code:
如果将
行
在pandas.dataframe
中放置,则可以使用.to_html()
将其生成为&lt ; table></table>
,但您也可以使用
行
也可以生成< table>>
手动结果:
编辑::
如果您使用
flask
,则可以将行
发送到模板并直接在模板中运行循环
I don't know what you need - image PNG/JPG, image SVG, text table, HTML table.
But first it would need to read data and convert to list like this
With this list it could be simpler to calculate positions for text on image, or generate text table, or generate HTML.
You could use it with
tabulate
to generate text tablewhich you can display in HTML in
<pre></pre>
or<code></code>
Minimal working code for text table
EDIT:
If you put
rows
inpandas.DataFrame
then you can use.to_html()
to generate it as<table></table>
But you can use
rows
also to generate<table>
manuallyResult:
EDIT:
If you use
flask
then you can sendrows
to templateand run loop directly in template