コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
4638 ビュー

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
2644
2
10月 18
7467
1
12月 16
6682
2
11月 16
5688
1
8月 16
3490