简体   繁体   中英

Python Bokeh HoverTool

Hi I am using the following code for my python hover function

 p = Scatter(df_new, x = 'Mobile', y ='Laptop', tooltips = [("brand",'@brand')])
 output_notebook()
 show(p)

But I keep getting ??? in brand value while hovering over it can anyone please tell as to what might be the issue here.

Are you sure you have column brand in your DataFrame? Maybe you have capital letter or something?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM