콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
4675 화면

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
7492
1
12월 16
6704
2
11월 16
5702
1
8월 16
3522