Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
4696 Представления

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
2682
2
окт. 18
7509
1
дек. 16
6725
2
нояб. 16
5727
1
авг. 16
3549