Read Excel file which has one of the column as Hyp

2019-09-23 15:52发布

I have to read an Excel file Using python. By the time I use

xl = pd.ExcelFile("abc.xlsx")

The column values which had hyperlink assigned to it becomes a simple number without any hyperlink.

Is there any way that I can retain the Hyperlink?

Details below.

enter image description here

1条回答
成全新的幸福
2楼-- · 2019-09-23 16:30

Pandas library does not have the functionality to parse hyperlink as of yet. You could preprocess the excel using libraries such as xlrd or openpxyl to get hyperlinks then use it in pandas.

Source: https://stackoverflow.com/a/45446810/7570485

There is also a feature request for this functionality.

https://github.com/pandas-dev/pandas/issues/13439

查看更多
登录 后发表回答