跳至内容
菜单
此问题已终结
2 回复
4674 查看

I have a binary field that holds my excel file and I need to read the data from it. I need to get the data as rows. How can I achieve this?

Can anyone help?

形象
丢弃
编写者 最佳答案

I got the answer.

Use xlrd to read the file as given below.


from xlrd import open_workbook

import base64

wb = open_workbook(file_contents = base64.decodestring(obj.file))

sheet = wb.sheets()[0]

形象
丢弃
相关帖文 回复 查看 活动
1
12月 18
2661
2
10月 18
7491
1
12月 16
6704
2
11月 16
5702
1
8月 16
3522