def make_plot(self, dataframe):
self.source = ColumnDataSource(data=dataframe)
self.title = Paragraph(text=TITLE)
self.data_table = DataTable(source=self.source, width=390, height=275, columns=[
TableColumn(field="zipcode", title="Zipcodes", width=100),
TableColumn(field="population", title="Population", width=100, formatter=NumberFormatter(format="0,0")),
TableColumn(field="city", title="City")
])
return column(self.title, self.data_table)
population.py 文件源码
python
阅读 24
收藏 0
点赞 0
评论 0
评论列表
文章目录