本文实例为大家分享了python读取mysql数据绘制条形图的具体代码,供大家参考,具体内容如下
Mysql 脚本示例:
create table demo(
id int
,product varchar(50)
,price decimal(18,2)
,quantity int
,amount decimal(18,2)
,orderdate datetime
);
insert into demo
select 1,'AAA',15.2,5,76,'2017-09-09' union all
select 2,'BBB',10,6,60,'2016-05-18' union all
1