跳至內容
選單
此問題已被標幟
4468 瀏覽次數

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
2月 23
9158
1
1月 18
5770
2
9月 23
17682
1
12月 22
5682
0
1月 22
2764