application_vnd.jupyter.stderr_output_2.png application_vnd.jupyter.stderr_output_1.png
from bokeh.io import output_file,show,output_notebook,push_notebook

from bokeh.models import ColumnDataSource,HoverTool,CategoricalColorMapper

import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

df = pd.read_csv('../input/scmp2k19.csv')

df.loc[:, ['district', 'mandal', 'location']].sample(7, random_state=1)

factors = list(df.mandal.unique())
colors = ['red', 'green', 'blue', 'black', 'orange', 'brown', 'grey', 'purple', 'yellow', 'white', 'pink', 'peru']
mapper = CategoricalColorMapper(factors=factors, palette=colors)
plot = figure()
plot.circle(x='odate', y='humidity_min', source=source, color={'field': 'Genre', 'transform': mapper})
show(plot)