Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
4190 Lượt xem

.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?

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 2 23
8323
1
thg 1 18
5434
2
thg 9 23
16917
1
thg 12 22
5279
0
thg 1 22
2452