728x90
먼저 다양한 데이터를 다루기위해서 기본이 되는 numpy, pandas를 import합니다.
그리고 기본으로 사용 될 output_notebook, show, figure도 import 해줍니다.
notebook환경에서 output을 확인할 것이므로 output_notebook() 선언합니다.
import numpy as np
import pandas as pd
from bokeh.io import output_notebook, show
from bokeh.plotting import figure, show
output_notebook()
output_notebook - notebook환경에서 내용을 출력
show - figure를 출력할 때 사용
figure - 차트나 그래프 등을 그리기 위한 판
예제 중에 사용할 샘플 데이터들을 다운로드 해놓겠습니다.
import bokeh.sampledata
bokeh.sampledata.download()
그 외 라이브러리는 필요할 때 선언해서 사용할 예정입니다.
'bokeh' 카테고리의 다른 글
[bokeh] 막대, 사각형, 육각 타일 (0) | 2020.10.04 |
---|---|
[bokeh] 라인 플롯 (Line Plots) (0) | 2020.10.04 |
[bokeh] 산점도(Scatter Plots) (0) | 2020.10.03 |
[bokeh] colab 환경 (0) | 2020.10.03 |
[bokeh] bokeh란? (0) | 2020.10.03 |