dataxiong

今天了解了用pyecharts绘制表格,方法很简单,如下:

from pyecharts.components import Table

from pyecharts.options import  ComponentTitleOpts

tabel = Table

headers = [ 列表数据] 也可以是DataFrame的columns

rows = [[...],[.....],[.....]

]  一行一行的list数据,也可以是DataFrame的values

table.add(headers,rows)  载入数据

table.set_global_opts(title_opts=ComponentTitleOpts(title='主标题',subtitle='副标题'))

table.render_notebook() 在notebook中直接显示图像

table.render('路径.html') 

不过感觉没得直接用EXCEL方便。如有特殊需求的时候可以用到。

eg:

 

分类:

python

技术点:

相关文章:

  • 2021-11-01
  • 2021-11-02
  • 2021-06-27
  • 2019-11-28
  • 2021-11-01
  • 2018-09-05
猜你喜欢
  • 2021-07-28
  • 2021-06-04
  • 2021-08-10
  • 2021-08-26
  • 2021-11-20
  • 2021-07-12
  • 2021-05-12
相关资源
相似解决方案