Pyecharts的安装
pip3 install pyecharts==0.5.9
需要升级pyecharts
pip install --upgrade pyecharts==版本号
pyecharts画直方图
from pyecharts.charts import Barfrom pyecharts import options as opts
bar = ( Bar() .add_xaxis(["衬衫", "毛衣", "领带", "裤子", "风衣", "高跟鞋", "袜子"]) .add_yaxis("商家A", [114, 55, 27, 101, 125, 27, 105]) .add_yaxis("商家B", [57, 134, 137, 129, 145, 60, 49]) .set_global_opts(title_opts=opts.TitleOpts(title="某商场销售情况")))bar.render()
上图直观的给大家呈现了使用模块分析出来的数据图表,这样,我们就可以有效进行爬取了,才是非常具有重要意义的哦~