# Providing data for a multi line from a dataframe? Having trouble figuring out how to restructure the dataframe / use multi\_line's syntax

**URL:** <https://discourse.bokeh.org/t/providing-data-for-a-multi-line-from-a-dataframe-having-trouble-figuring-out-how-to-restructure-the-dataframe-use-multi-lines-syntax/5038>\
**Category:** Community Support\
**Created:** [March 29, 2020, 2:14am UTC](https://discourse.bokeh.org/t/providing-data-for-a-multi-line-from-a-dataframe-having-trouble-figuring-out-how-to-restructure-the-dataframe-use-multi-lines-syntax/5038 "2020-03-29T02:14:57Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![tvkyq](https://discourse.bokeh.org/user_avatar/discourse.bokeh.org/tvkyq/32/1485_2.png) [@tvkyq](https://discourse.bokeh.org/u/tvkyq)\
**Post date:** [March 30, 2020, 4:34am UTC](https://discourse.bokeh.org/t/providing-data-for-a-multi-line-from-a-dataframe-having-trouble-figuring-out-how-to-restructure-the-dataframe-use-multi-lines-syntax/5038/9 "2020-03-30T04:34:04Z")

</div>

Hey @p-himik might be starting to digress here but tooltips don’t seem to be working, probably because of how we’ve brought in the lines with the for loop and df.groupby. It renders but all the values are ‘???’. I hoped this would work:

```
ttips = HoverTool(tooltips = [
    ("Peak Change", "@{Peak_change}")])
p = figure(title ='whatever')
p.add_tools(ttips)

```

But no dice. I’ve tried to enter tooltips within the for loop but that doesn’t seem to work as `p.line` won’t accept tooltips as an argument.

I’ve had a look around on other posts and stackoverflow but I only found posts that are obsolete or involved workarounds for slightly different things I didn’t understand.

Any ideas?

@Carl cool to see others trying to figure out the same thing!

---

_[View the full topic](https://discourse.bokeh.org/t/providing-data-for-a-multi-line-from-a-dataframe-having-trouble-figuring-out-how-to-restructure-the-dataframe-use-multi-lines-syntax/5038)._
