I am new to Flask Python. So please accept my apology if my problem seems to be trivial or stupid. I am displaying a dataframe in the form of table on html page. I want to data one column into existing dataframe with name 'link' (that contains clickable link) so that when user clicks on the column value, it goes to some page. In short I want something like that:
I borrowed the idea from one of the existing threads How to create a table with clickable hyperlink in pandas & Jupyter Notebook. However, it produces the actual output like this:
Here is part of my code:
def make_clickable(val1='welcome.html',val2='Click here'):
return '<a href="{}">{}</a>'.format(val1,val2)
df['Link']= df.style.format(make_clickable)
Could anyone point me where am I making mistake?