Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
4532 Zobrazení

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
Zrušit
Autor Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
pro 18
2570
2
říj 18
7379
1
pro 16
6578
2
lis 16
5556
1
srp 16
3391