Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
4723 Переглядів

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]

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
груд. 18
2704
2
жовт. 18
7536
1
груд. 16
6758
2
лист. 16
5753
1
серп. 16
3572