파이썬 Jupyter Notebook 실전 입문 최신 버전 반영 코드 pg 299 - 2
·
Machine Learning/Visualize
pg 299사전형 데이터 이용하기리스트/그림 6.4.3 from bokeh.plotting import output_notebook, figure, showfrom bokeh.models import ColumnDataSource output_notebook() p = figure(plot_width=400, plot_height=400)data = { 'x': [1, 2, 3], 'y1': [1, 2, 3], 'y2': [2, 4, 9],}source = ColumnDataSource(data=data) p.line(source=source, x='x', y='y1', line_width=3)show(p)