# リスト6.8.1:箱ひげ図
from bokeh.charts import BoxPlot, output_notebook, show
import os
import pandas as pd
output_notebook()
base_url = (
"https://raw.githubusercontent.com/practical-jupyter/sample-data/master/anime/"
)
anime_master_csv = os.path.join(base_url, "anime_master.csv")
df = pd.read_csv(anime_master_csv)
p = BoxPlot(df, values="rating", label="type", color="type", legend=False)
show(p)