python - add hyperlink to excel sheet created by pandas dataframe to_excel method -
i have converted pandas dataframe excel sheet using df.to_excel.
now, want add hyperlinks values in 1 column. in other words, when customer sees excel sheet, able click on cell , bring webpage (depending on value in cell).
you use hyperlink function
import pandas pd df = pd.dataframe({'link':['=hyperlink("http://www.someurl.com", "some website")']}) df.to_excel('test.xlsx')
Comments
Post a Comment