sing column name in hover tool, passing legend to hover tool?

Can a user use the title (header) of a pandas column data set to label a plot name via hover tool? Also, is it possible to pass on a legend to the hover tool (I have a plot with multiple lines).

I see a discussion about this topic at link below but using “@{columan name}” doesn’t seem to work.

Below is the code:

import pandas as pd

from bokeh.charts import TimeSeries, show, output_file

from bokeh.layouts import column

from bokeh.models import HoverTool

import pandas as pd

read in some stock data from the Yahoo Finance API

data = pd.DataFrame(np.random.randn(10, 5), columns=[‘a’, ‘b’, ‘c’, ‘d’, ‘e’])

p = figure(plot_height=600, plot_width=800)

p = TimeSeries(data,

x=‘a’, y=[ ‘b’, ‘c’, ‘d’, ‘e’],

title=“Timeseries”, ylabel=‘y’, legend=True, tools = ‘hover’)

hover =

hover.tooltips = [

(“columan_name”, “@{column_name}”),

(“x-value”, “$x”),

(“y-value”, “$y”),