【发布时间】:2013-07-23 23:41:22
【问题描述】:
Python 库 pandas 可以读取 Excel 电子表格并使用 pandas.read_excel(file) 命令将其转换为 pandas.DataFrame。在底层,它使用xlrd 库,其中does not support ods 文件。
对于 ods 文件,是否有相当于 pandas.read_excel 的内容?如果没有,我该如何对 Open Document Formatted 电子表格(ods 文件)执行相同的操作? ODF 被 LibreOffice 和 OpenOffice 使用。
【问题讨论】:
-
自 2012 年以来,pandas github 上有一个功能请求here。我不知道他们为什么还没有实现它!
-
自 2019 年 8 月起实施 :)
-
票数最高的答案完美解决了问题。也许你应该接受它?
标签: pandas python pandas libreoffice dataframe opendocument