简体   繁体   English

如何从SQLAlchemy表生成图形和统计信息?

[英]How to generate graphs and statistics from SQLAlchemy tables?

After running a bunch of simulations I'm going to be outputting the results into a table created using SQLAlchemy. 运行一堆模拟后,我将把结果输出到使用SQLAlchemy创建的表中。 I plan to use this data to generate statistics - mean and variance being key. 我计划使用此数据来生成统计数据-均值和方差是关键。 These, in turn, will be used to generate some graphs - histograms/line graphs, pie-charts and box-and-whisker plots specifically. 这些反过来又将用于生成一些图形-直方图/折线图,饼图和箱须图。

I'm aware of the Python graphing libraries like matplotlib . 我知道像matplotlib这样的Python图形库。 The thing is, I'm not sure how to have this integrate with the information contained within the database tables. 问题是,我不确定如何将其与数据库表中包含的信息集成在一起。

Any suggestions on how to make these two play with each other? 关于如何使这两个相互配合有什么建议吗?

The main problem is that I'm not sure how to supply the information as "data sets" to the graphing library. 主要问题是我不确定如何将信息作为“数据集”提供给图形库。

看起来matplotlib需要简单的python数据类型-数字列表等,因此您将需要编写自定义代码来处理从mysql / sqlalchemy中提取的内容,以输入到图形函数中...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM