How to read Excel files from a stream (not a disk-backed file) in Python?

后端 未结 4 2198
说谎
说谎 2021-02-19 16:59

XLRD is installed and tested:

>>> import xlrd
>>> workbook = xlrd.open_workbook(\'Sample.xls\')

When I read the file through

4条回答
  •  独厮守ぢ
    2021-02-19 17:13

    For me this code works. Python 3

    xlrd.open_workbook(file_contents=fileobj.content)
    

提交回复
热议问题