使用 Python 生成报告:PDF 或 HTML 到 PDF
Generating Reports with Python: PDF or HTML to PDF
使用 maptplotlib
我创建了 9 个图表,使用命令 savefig
将它们组合成一个 pdf。但是,我需要能够使用 .describe()
在每个图下方显示统计分析。执行此操作的最佳方法是什么?
有多种可能性:
- http://pbpython.com/pdf-reports.html
- http://gael-varoquaux.info/computers/pyreport/
- https://github.com/JanSchulz/knitpy
最后,请查看 https://github.com/JanSchulz/knitpy/tree/master/examples,docx、pdf 和 html 版本是从 .pymd
源生成的。该示例包括 pandas.DataFrame
s 和 matplotlib 图形。
免责声明:我是 knitpy 的作者
Pandas 可以包含 table 和情节。请参阅 table
kwarg 到 pandas.DataFrame.plot
。请参阅文档:http://pandas.pydata.org/pandas-docs/dev/visualization.html#visualization-table
使用 maptplotlib
我创建了 9 个图表,使用命令 savefig
将它们组合成一个 pdf。但是,我需要能够使用 .describe()
在每个图下方显示统计分析。执行此操作的最佳方法是什么?
有多种可能性:
- http://pbpython.com/pdf-reports.html
- http://gael-varoquaux.info/computers/pyreport/
- https://github.com/JanSchulz/knitpy
最后,请查看 https://github.com/JanSchulz/knitpy/tree/master/examples,docx、pdf 和 html 版本是从 .pymd
源生成的。该示例包括 pandas.DataFrame
s 和 matplotlib 图形。
免责声明:我是 knitpy 的作者
Pandas 可以包含 table 和情节。请参阅 table
kwarg 到 pandas.DataFrame.plot
。请参阅文档:http://pandas.pydata.org/pandas-docs/dev/visualization.html#visualization-table