Python Forum

Full Version: Bokeh
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?