Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
4669 Vizualizări

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?

Imagine profil
Abandonează
Autor Cel mai bun răspuns

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]

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
dec. 18
2660
2
oct. 18
7487
1
dec. 16
6702
2
nov. 16
5700
1
aug. 16
3521