Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
4590 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
2598
2
okt. 18
7414
1
dec. 16
6629
2
nov. 16
5616
1
aug. 16
3438