How to create tooltip for a multiindex dataframe?

I have a dash_table.DataTable() with a MultiIndex header where I would like to tooltip, with a markdown table in it. This is my list based dicts for each tooltip:
‘_’.join(lst_tooltip_headers[0]): {
‘value’: markdown_table, → Table highly inspired from source documentation
‘type’: ‘markdown’
This dict is iterated for each row in my dataframe/dict that I use as data, thus nested dicts in an overall list.

The error is: "Invalid argument ‘tooltip’ passed into DataTable. Expected and object. Was supplied type ‘array’.

I have compared tooltip output with other code I have, where I do not get this error, thus I suspect I’m doing something wrong related to the MultiIndex header.

Hi @ChrisBuchhave and welcome to the Dash community :slight_smile:

There is not quite enough information here to help. Could you make a minimal example that reproduces the error? More information on how to do that here: How to Get your Questions Answered on the Plotly Forum