Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
4475 Tampilan

.py file's code:
...
datafile=fields.Binary("File")
...

file_like=io.BytesIO(base64.b64decode(self.datafile))
table=pandas.ExcelFile(file_like)
col_name=table.parse(0).icol(1).real[1:]
col_datetime=table.parse(0).icol(3)[1:]
...

Now I have modified some data of table;

how shall I write the modified data of the "table" back in a "Binary fields" for users to download?

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
2
Feb 23
9163
1
Jan 18
5779
2
Sep 23
17697
1
Des 22
5694
0
Jan 22
2767