使用Python生成报告:PDF或HTML到PDF [英] Generating Reports with Python: PDF or HTML to PDF

查看:327
本文介绍了使用Python生成报告:PDF或HTML到PDF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用maptplotlib我创建了9个图形,使用命令savefig将这些图形组合成一个pdf.但是,我需要能够使用.describe()在每个图的下方显示统计分析.最好的方法是什么?

Using maptplotlib I have created 9 graphs which are combined in to a single pdf using the command savefig. However I need to be able to show the statistical analysis below each plot with .describe(). What would be the best way to do this?

推荐答案

Pandas可以包含带有图表的表格.请参见table kwarg至pandas.DataFrame.plot.请参阅文档: http://pandas.pydata.org/pandas -docs/dev/visualization.html#visualization-table

Pandas has the possibility to include a table with a plot. See the table kwarg to pandas.DataFrame.plot. See the docs: http://pandas.pydata.org/pandas-docs/dev/visualization.html#visualization-table

这篇关于使用Python生成报告:PDF或HTML到PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆