// prepare outlier data for plotting, we need coordinates for every outlier.
if not out.empty:
outx = []
outy = []
for keys in out.index:
outx.append(keys[0])
outy.append(out.loc[keys[0]].loc[keys[1]])
After Change
// prepare outlier data for plotting, we need coordinates for every outlier.
if not out.empty:
outx = list(out.index.get_level_values(0))
outy = list(out.values)
p = figure(tools="", background_fill_color="//efefef", x_range=cats, toolbar_location=None)