用Pandas在Excel中读取删除线

有没有办法让我在不使用VBA的情况下阅读pandas的删除线? 我有一个电子表格,一个人拒绝使用其他任何东西。 先谢谢了!

这在pandas是不可能的,但会使用xlrd 。 您可以先parsing格式,然后将其转换为Pandas数据框。

示例代码使用xlrd读取文件。 修改了一个类似问题的答案:

 import xlrd.open_workbook workbook = xlrd.open_workbook('tmp.xls', formatting_info=True) sheet = wb.sheet_by_name("1") cell = sheet.cell(6, 0) format = wb.xf_list[cell.xf_index] print "type(format) is", type(format) print print "format.dump():" format.dump()