Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
5178 Weergaven

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?

Avatar
Annuleer
Auteur Beste antwoord

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]

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
1
dec. 18
3093
2
okt. 18
7942
1
dec. 16
7497
2
nov. 16
6310
1
aug. 16
4018