关于从.xlsx格式的文件读取数据,我有两个问题。
- 是否可以将.xlsx文件转换为.csv而不实际在熊猫中打开文件或使用xlrd?因为当我不得不打开许多文件时,这非常慢,因此我试图加快速度。
- 是否可以使用某种for循环遍历已解码的xlsx行?我在下面举一个例子。
xlsx_file = 'some_file.xlsx'
with open(xlsx_file) as lines:
for line in lines:
<do something like I would do for a normal string>
我想知道如果没有众所周知的xlrd模块是否有可能。