뉴비에욤
pg 300DataFrame 이용하기리스트/그림 6.4.5 import osimport pandas as pdfrom bokeh.palettes import Spectral11from bokeh.plotting import output_notebook, figure, show output_notebook() base_url = 'https://raw.githubusercontent.com/practical-jupyter/sample-data/master/anime/'anime_stock_returns_csv = os.path.join(base_url, 'anime_stock_returns.csv')df = pd.read_csv(anime_stock_returns_csv, index_col=0, parse..
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)
그림 6.4.2 생성 코드 from bokeh.plotting import output_notebook, figure, show output_notebook()p = figure(plot_width=400, plot_height=400)p.multi_line([[0, 1, 2], [0, 1, 2]], [[1, 2, 3], [2, 4, 9]], color=['firebrick', 'navy'], line_width=3)show(p)