So I am trying to populate an xls sheet with clickable links. When I do df.head() it shows me clickable links but when I export df as excel, these links are not clickable anymore.
def make_clickable(val):
return '<a href="{}">{}</a>'.format(val,val)
df = pd.DataFrame(['http://google.com', 'http://duckduckgo.com'])
df.style.format(make_clickable)
df.to_excel("j.xls")
How can I resolve such issues? Or pandas does not support clickable links after download?