İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
4557 Görünümler

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
Vazgeç
Üretici En İyi Yanıt

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
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Ara 18
2587
2
Eki 18
7401
1
Ara 16
6606
2
Kas 16
5592
1
Ağu 16
3416