df = pd.DataFrame(list(range(5)), columns=['a'])
df['a'] = df['a'].apply(lambda x:
    '<a href="http://example.com/{0}">link</a>'.format(x))
HTML(df.to_html(escape=False))
Insert a link inside a pandas table