Hi @chriddyp, here is a better example:
It appears that I had to interchange row and column order:
tooltip_data= [{c:
{
'type': 'text',
'value': f'{r},{c}'
} for c in df.columns
} for r in df[df.columns[0]].values]
I realized that tooltip_data
expects a list of dictionaries where each item in the dictionary is another dictionary for each column.
1 Like