Python Forum
Bokeh - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Data Science (https://python-forum.io/forum-44.html)
+--- Thread: Bokeh (/thread-17011.html)



Bokeh - naveen73 - Mar-24-2019

Hi all,
I have a problem with plotting in Bokeh. Please see a screenshot of my dataset(it actually has 10 rows):

bokey-screenshot


These are the dtypes
Country_code object
Bank_name object
Tier_1_ratio float64
dtype: object


This is how I am trying to plot it
from bokeh.models import ColumnDataSource
from bokeh.palettes import Spectral6


source = ColumnDataSource(top_ten_start)

p = figure(x_range='Bank_name', plot_height=250, y_range=(0, 90), title="BAnks")
p.vbar(x='Bank_name', top='Tier_1_ratio', width=0.9, legend="test", source=source)

p.xgrid.grid_line_color = None
p.legend.orientation = "horizontal"
p.legend.location = "top_center"

show(p)
There is nothing showing up. Can you help me with this, please?